public static Object objectFromProperties(Properties p,String propName){
  Object ret=null;
  String objectName=p.getProperty(propName);
  if (objectName != null) {
    ret=ComponentFactory.create(objectName);
  }
  return ret;
}

public static Object objectFromProperties ( Properties p , String propName ) { Object ret = null ; String objectName = p . getProperty ( propName ) ; if ( objectName != null ) { ret = ComponentFactory . create ( objectName ) ; } return ret ; }
creates an object out of a property name . if anything fails , return null .
