public static void convertCustomSpacePropsToJProperties(String spaceName,Properties customProps,JSpaceAttributes spaceAttrib){
  if (customProps != null) {
    for (Enumeration e=customProps.propertyNames(); e.hasMoreElements(); ) {
      String propName=(String)e.nextElement();
      String propValue=customProps.getProperty(propName);
      String spacePropKey=spaceName == null ? propName : spaceName + "." + propName;
      if (propName.startsWith(Constants.SPACE_CONFIG_PREFIX))       spaceAttrib.setProperty(spacePropKey,propValue);
    }
  }
}

public static void convertCustomSpacePropsToJProperties ( String spaceName , Properties customProps , JSpaceAttributes spaceAttrib ) { if ( customProps != null ) { for ( Enumeration e = customProps . propertyNames ( ) ; e . hasMoreElements ( ) ; ) { String propName = ( String ) e . nextElement ( ) ; String propValue = customProps . getProperty ( propName ) ; String spacePropKey = spaceName == null ? propName : spaceName + "." + propName ; if ( propName . startsWith ( Constants . SPACE_CONFIG_PREFIX ) ) spaceAttrib . setProperty ( spacePropKey , propValue ) ; } } }
convert space attributes according to custom properties
