19 package org.turro.publishing;
21 import java.io.Serializable;
22 import java.util.HashMap;
23 import org.turro.reflection.Reflections;
31 public <T extends Serializable> T
get(Class<T> javaClass, String key) {
32 Object obj =
get(key);
33 if(obj !=
null && Reflections.of(obj).canCast(javaClass)) {
39 public <T extends Serializable> T
get(Class<T> javaClass, String key, T defaultValue) {
40 T t =
get(javaClass, key);
41 return t ==
null ? defaultValue : t;