src/main/java/org/jboss/util/SoftObject.java
public static SoftObject create(final Object obj, 
                                   final ReferenceQueue queue) 
   {
      if (obj == null) return null;
      else return new SoftObject(obj, queue);
   }
public static SoftObject create(final Object obj, 
                                   final ReferenceQueue queue) 
   {
      if (obj == null) return null;
      else return new SoftObject(obj, queue);
   }
public static SoftObject create ( final Object obj , final ReferenceQueue queue ) { if ( obj == null ) return null ; else return new SoftObject ( obj , queue ) ; }
Create a <tt>SoftObject</tt> for the given object.

@param obj     Object to reference.
@param queue   Reference queue.
@return        <tt>SoftObject</tt> or <tt>null</tt> if object is null.
Create a <tt > SoftObject< / tt > for the given object .