public static void setProperty ( String key , String value , PropertyOwner propertyOwner , Map < String , Object > properties ) { if ( propertyOwner != null ) { propertyOwner . setProperty ( key , value ) ; } if ( properties != null ) { if ( value != null ) properties . put ( key , value ) ; else properties . remove ( key ) ; } }
A utility to set the property from the propertyowner or the property .