public static boolean isProxyType(Class<?> type){
  String name=type.getName();
  if (name.startsWith("net.sf.cglib.proxy.") || name.startsWith("org.hibernate.proxy.")) {
    return true;
  }
  return false;
}

public static boolean isProxyType ( Class < ? > type ) { String name = type . getName ( ) ; if ( name . startsWith ( "net.sf.cglib.proxy." ) || name . startsWith ( "org.hibernate.proxy." ) ) { return true ; } return false ; }
helper method used to weed out dynamic proxy types ; types that do not expose concrete method api that we could use to figure out automatic bean ( property ) based serialization .
