Here you can find the source of classNameToResourceKey(String name)
public static String classNameToResourceKey(String name)
//package com.java2s; //License from project: Open Source License public class Main { public static String classNameToResourceKey(String name) { return name.replaceAll("\\B([A-Z])", "_$1").toLowerCase() + "s"; }/*from w w w. ja v a2 s .c o m*/ }