class InputValidator {

    static public void validateRemoteServerURLNotNull(String className, String actionDescription, String omasServerURL) throws InvalidParameterException {
        if (omasServerURL == null) {
            /*
             * It is not possible to retrieve a connection without knowledge of where the OMAS Server is located.
             */
            ExceptionMessageDefinition messageDefinition = SubjectAreaErrorCode.SERVER_URL_NOT_SPECIFIED.getMessageDefinition();

            String invalidPropertyName = "omasServerURL";
            messageDefinition.setMessageParameters(invalidPropertyName, null);
            throw new InvalidParameterException(messageDefinition,
                                                className,
                                                actionDescription,
                                                invalidPropertyName,
                                                null);
        }
    }

}