public static JSLProperties javaPropsTojslProperties(final Properties javaProps) {

        JSLProperties newJSLProps = jslFactory.createJSLProperties();
        

        Enumeration<?> keySet = javaProps.propertyNames();
        
        while (keySet.hasMoreElements()) {
            String key = (String)keySet.nextElement();
            String value = javaProps.getProperty(key);
            
            Property newProperty = jslFactory.createProperty();
            newProperty.setName(key);
            newProperty.setValue(value);
            newJSLProps.getPropertyList().add(newProperty);
        }
        
        return newJSLProps;

    }
public static JSLProperties javaPropsTojslProperties ( final Properties javaProps ) { JSLProperties newJSLProps = jslFactory . createJSLProperties ( ) ; Enumeration < ? > keySet = javaProps . propertyNames ( ) ; while ( keySet . hasMoreElements ( ) ) { String key = ( String ) keySet . nextElement ( ) ; String value = javaProps . getProperty ( key ) ; Property newProperty = jslFactory . createProperty ( ) ; newProperty . setName ( key ) ; newProperty . setValue ( value ) ; newJSLProps . getPropertyList ( ) . add ( newProperty ) ; } return newJSLProps ; }
Creates a new JSLProperties list from a java.util.Properties
object.

@param xmlProperties
@return