public static void copyProperties(Object dest,Object src){
  if (dest == null || src == null) {
    return;
  }
  try {
    PropertyUtils.copyProperties(dest,src);
  }
 catch (  IllegalAccessException e) {
    throw new IllegalStateException(e);
  }
catch (  InvocationTargetException e) {
    throw new IllegalStateException(e);
  }
catch (  NoSuchMethodException e) {
    throw new IllegalStateException(e);
  }
}

public static void copyProperties ( Object dest , Object src ) { if ( dest == null || src == null ) { return ; } try { PropertyUtils . copyProperties ( dest , src ) ; } catch ( IllegalAccessException e ) { throw new IllegalStateException ( e ) ; } catch ( InvocationTargetException e ) { throw new IllegalStateException ( e ) ; } catch ( NoSuchMethodException e ) { throw new IllegalStateException ( e ) ; } }
it is null safe
