}
@Override
public SecureConfigItem newSecuredConfigItem( final String name,
final String valueType ) {
final SecureConfigItem stringConfigItem = new SecureConfigItem();
if ( name.startsWith( "crypt:" ) ) {
stringConfigItem.setName( name.substring( "crypt:".length() ) );
} else {
stringConfigItem.setName( name );
}
stringConfigItem.setValue( secureService.encrypt( valueType ) );
return stringConfigItem;
}