public static boolean isPojo(Object object){
  if (object == null)   return false;
  if (object instanceof Object[]) {
    if (object instanceof Entry[])     return false;
    if (Array.getLength(object) == 0)     return false;
    Object value=Array.get(object,0);
    if (value == null || value instanceof Entry)     return false;
  }
 else   if (object instanceof Entry)   return false;
  return true;
}

public static boolean isPojo ( Object object ) { if ( object == null ) return false ; if ( object instanceof Object [ ] ) { if ( object instanceof Entry [ ] ) return false ; if ( Array . getLength ( object ) == 0 ) return false ; Object value = Array . get ( object , 0 ) ; if ( value == null || value instanceof Entry ) return false ; } else if ( object instanceof Entry ) return false ; return true ; }
check if the object is pojo
