private static String removeNonWord(String name) {
        return name.replaceAll("[^\\w-\\.]", ""); //$NON-NLS-1$ //$NON-NLS-2$
    }
This essentially removes any non "word" characters from the name.
@param name the name
@return the id
manager/api/beans/src/main/java/io/apiman/manager/api/beans/BeanUtils.java