question: public static KEYSTORE_TYPE fromString ( String x ) throws ConfigurationException { for ( KEYSTORE_TYPE currentType : KEYSTORE_TYPE . values ( ) ) { if ( x . equalsIgnoreCase ( currentType . toString ( ) ) ) return currentType ; } throw new ConfigurationException ( MessageFormat . format ( "Cannot cast into a known CERTIFICATE_KEY_TYPE: {0}" , x ) ) ; }
target:  Converts a string into the corresponding KEYSTORE_TYPE