String argumentName = entry.getKey();
Object argumentVal = entry.getValue();
if (argumentVal instanceof String) {
if (StringUtil.isEmpty((String) argumentVal)) { // Use the StringUtil class for checking String objects
if (logger.isLoggable(Level.SEVERE)) {
logger.severe(classname + " " + methodname + " Argument " + argumentName
+ ", passed was null");
}
InvalidInputException invalidinputexception = new InvalidInputException(null,
"Input parameter " + argumentName + " passed was null", classname, methodname);
throw invalidinputexception;