private void assertStringNotNullOrEmpty(String parameterValue, String errorMessage) {
        if (parameterValue == null) {
            throw new IllegalArgumentException(errorMessage);
        }
        if (parameterValue.isEmpty()) {
            throw new IllegalArgumentException(errorMessage);
        }
    }
private void assertStringNotNullOrEmpty ( String parameterValue , String errorMessage ) { if ( parameterValue == null ) { throw new IllegalArgumentException ( errorMessage ) ; } if ( parameterValue . isEmpty ( ) ) { throw new IllegalArgumentException ( errorMessage ) ; } }
Asserts that the specified parameter value is not <code>null</code> or <code>empty</code> and if it is,
throws an <code>IllegalArgumentException</code> with the specified error message.

@param parameterValue The parameter value being checked.
@param errorMessage The error message to include in the IllegalArgumentException
if the specified parameter is null.