/** * Serializes the necessary properties into a Map. * * @param props The properties to serialize. * @return A representation of the Properties as a Map. */ public static Map<String, String> serializeProperties(Properties props) { Map<String, String> infoAsString = new HashMap<>(); for (Map.Entry<Object, Object> entry : props.entrySet()) { // Determine if this is a property we want to forward to the server if (!BuiltInConnectionProperty.isLocalProperty(entry.getKey())) { infoAsString.put(entry.getKey().toString(), entry.getValue().toString()); } } return infoAsString; }
/** * Serializes the necessary properties into a Map. * * @param props The properties to serialize. * @return A representation of the Properties as a Map. */ public static Map<String, String> serializeProperties(Properties props) { Map<String, String> infoAsString = new HashMap<>(); for (Map.Entry<Object, Object> entry : props.entrySet()) { // Determine if this is a property we want to forward to the server if (!BuiltInConnectionProperty.isLocalProperty(entry.getKey())) { infoAsString.put(entry.getKey().toString(), entry.getValue().toString()); } } return infoAsString; }