int portInt = Integer.parseInt(value);
// now open a server socket to the port to ensure that it is
// available if the property has a true value for its meta data, and
// if the value has changed
PropertyClass propertyClass = definition.getPropertyClass();
AbstractPropertyKey propertyKey = new AbstractPropertyKey(definition.getName(), propertyClass.getName());
int oldValue = propertyClass.retrievePropertyInt(propertyKey);
if (oldValue != portInt) {
try {
ServerSocket socket = new ServerSocket(portInt);
socket.close();