tvaultapi/src/main/java/com/tmobile/cso/vault/api/controller/ControllerUtil.java
public static String convertAppRoleInputsToLowerCase(String jsonstr) {
		log.debug(JSONUtil.getJSON(ImmutableMap.<String, String>builder().
			      put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER)).
				  put(LogMessage.ACTION, "convertAppRoleInputsToLowerCase").
			      put(LogMessage.MESSAGE,"Started converting the appRole Inputs to lower case.").
			      put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL)).
			      build()));
		try {
			AppRole appRole = (AppRole)JSONUtil.getObj(jsonstr, AppRole.class);
			appRole.setRole_name(appRole.getRole_name());
			jsonstr = JSONUtil.getJSON(appRole);
			return jsonstr;
		} catch (Exception e) {
			log.error(JSONUtil.getJSON(ImmutableMap.<String, String>builder().
				      put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER).toString()).
					  put(LogMessage.ACTION, "convertAppRoleInputsToLowerCase").
				      put(LogMessage.MESSAGE, String.format (FAILMESGSTR, jsonstr)).
				      put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL).toString()).
				      build()));
			return jsonstr;
		}
	}
/**
	 * Converts the appRole Inputs to lower case
	 * @param jsonstr
	 * @return
	 */
Converts the appRole Inputs to lower case
@param jsonstr
@return
Converts the appRole Inputs to lower case @param jsonstr @return
public static String convertAppRoleInputsToLowerCase(String jsonstr) {
		log.debug(JSONUtil.getJSON(ImmutableMap.<String, String>builder().
			      put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER)).
				  put(LogMessage.ACTION, "convertAppRoleInputsToLowerCase").
			      put(LogMessage.MESSAGE,"Started converting the appRole Inputs to lower case.").
			      put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL)).
			      build()));
		try {
			AppRole appRole = (AppRole)JSONUtil.getObj(jsonstr, AppRole.class);
			appRole.setRole_name(appRole.getRole_name());
			jsonstr = JSONUtil.getJSON(appRole);
			return jsonstr;
		} catch (Exception e) {
			log.error(JSONUtil.getJSON(ImmutableMap.<String, String>builder().
				      put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER).toString()).
					  put(LogMessage.ACTION, "convertAppRoleInputsToLowerCase").
				      put(LogMessage.MESSAGE, String.format (FAILMESGSTR, jsonstr)).
				      put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL).toString()).
				      build()));
			return jsonstr;
		}
	}
public static String convertAppRoleInputsToLowerCase ( String jsonstr ) { log . debug ( JSONUtil . getJSON ( ImmutableMap . < String , String > builder ( ) . put ( LogMessage . USER , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . USER ) ) . put ( LogMessage . ACTION , "convertAppRoleInputsToLowerCase" ) . put ( LogMessage . MESSAGE , "Started converting the appRole Inputs to lower case." ) . put ( LogMessage . APIURL , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . APIURL ) ) . build ( ) ) ) ; try { AppRole appRole = ( AppRole ) JSONUtil . getObj ( jsonstr , AppRole . class ) ; appRole . setRole_name ( appRole . getRole_name ( ) ) ; jsonstr = JSONUtil . getJSON ( appRole ) ; return jsonstr ; } catch ( Exception e ) { log . error ( JSONUtil . getJSON ( ImmutableMap . < String , String > builder ( ) . put ( LogMessage . USER , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . USER ) . toString ( ) ) . put ( LogMessage . ACTION , "convertAppRoleInputsToLowerCase" ) . put ( LogMessage . MESSAGE , String . format ( FAILMESGSTR , jsonstr ) ) . put ( LogMessage . APIURL , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . APIURL ) . toString ( ) ) . build ( ) ) ) ; return jsonstr ; } }
Converts the appRole Inputs to lower case
 @param jsonstr
 @return
Converts the appRole Inputs to lower case @param jsonstr @return