private void checkForRequiredParameter(Object parameterValue, String parameterName) throws UsageException { if (parameterValue == null) { UsageException.throwForMissingRequiredValue(parameterName); } }
private void checkForRequiredParameter(String parameterValue, String parameterName) throws UsageException { if (parameterValue == null || parameterValue.length() == 0) { UsageException.throwForMissingRequiredValue(parameterName); } }