final Object infoToShow;
if (infoType.equals(Tokens.ARGS_INFO_TYPE_DEPDENENCIES))
infoToShow = scriptEngines.dependencies();
else if (infoType.equals(Tokens.ARGS_INFO_TYPE_IMPORTS))
infoToShow = scriptEngines.imports();
else {
// this shouldn't happen if validations are working properly. will bomb and log as error to server logs
// thus killing the connection
throw new RuntimeException(String.format("Validation for the show operation is not properly checking the %s", Tokens.ARGS_INFO_TYPE));
}