@SuppressWarnings("unchecked") public static <T> T get(Class<T> entityType, Object idValue) { return (T) cache.get(entityType.getName() + "#" + idValue); }
public static <T> void put(Class<T> entityType, Object idValue, Object entity) { cache.put(entityType.getName() + "#" + idValue, entity); }