private final ParametersValidator connectionIdValidator = new ParametersValidator();
private final ParametersValidator sessionIdValidator = new ParametersValidator();
private final ParametersValidator lastSentValidator = new ParametersValidator();
private JMSServerControlHandler() {
final StringLengthValidator stringLengthValidator = new StringLengthValidator(1);
connectionIdValidator.registerValidator(CONNECTION_ID, stringLengthValidator);
sessionIdValidator.registerValidator(SESSION_ID, stringLengthValidator);
lastSentValidator.registerValidator(SESSION_ID, stringLengthValidator);
lastSentValidator.registerValidator(ADDRESS_NAME, stringLengthValidator);
}