@@ -0,0 +1,893 @@
+/**%0A * Copyright (C) 2009 - 2010 by OpenGamma Inc.%0A *%0A * Please see distribution for license.%0A */%0Apackage com.opengamma.id;%0A%0A/**%0A * Provides uniform access to objects that support having their unique identifier%0A * updated after construction.%0A * %3Cp%3E%0A * For example, code in the database layer will need to update the unique identifier%0A * when the object is stored.%0A */%0Apublic final class UniqueIdentifiables %7B%0A%0A  /**%0A   * Restricted constructor.%0A   */%0A  private UniqueIdentifiables() %7B%0A  %7D%0A%0A  /**%0A   * Sets the unique identifier of an object if it implements %7B@code MutableUniqueIdentifiable%7D.%0A   * @param object  the object to set into%0A   * @param uid  the unique identifier to set%0A   */%0A  public static void setInto(Object object, UniqueIdentifier uid) %7B%0A    if (object instanceof MutableUniqueIdentifiable) %7B%0A      ((MutableUniqueIdentifiable) object).setUniqueIdentifier(uid);%0A    %7D%0A  %7D%0A%0A%7D%0A

Refactor SecurityMaster