return convertersIds.get(converter);
}
public static void registerConverter(String databaseId, Converter<?, ?> converter) {
if (databaseId.length() != 1)
throw new JbpmException("converter-ids must be of length 1 (to be stored in a char)");
if (convertersByDatabaseId.containsKey(databaseId))
throw new JbpmException("duplicate converter id: '" + databaseId + "'");
log.debug("adding converter '" + databaseId + "', '" + converter + "'");
convertersByClassNames.put(converter.getClass().getName(), converter);
convertersByDatabaseId.put(databaseId, converter);
convertersIds.put(converter, databaseId);