Here you can find the source of sanitizeOperationId(String operationId)
public static String sanitizeOperationId(String operationId)
//package com.java2s; //License from project: Apache License public class Main { public static String sanitizeOperationId(String operationId) { StringBuffer result = new StringBuffer(); for (int i = 0; i < operationId.length(); i++) { char c = operationId.charAt(i); if (c == '-' || c == ' ' || c == '_') { try { while (c == '-' || c == ' ' || c == '_') { i++;/*from w w w . j a va 2 s. c o m*/ c = operationId.charAt(i); } result.append(Character.toUpperCase(operationId.charAt(i))); } catch (StringIndexOutOfBoundsException e) { } } else { result.append(c); } } return result.toString(); } }