code: protected void copyProperties(Object dest, Object source) {
          try {
              BeanUtils.copyProperties(dest, source);
          } catch (Exception e) {
              String errorMessage = MessageFormat.format("M:{0};;E:{1}",
                      e.getCause().getMessage(), e.toString());
              throw new WebApplicationException(errorMessage, Status.BAD_REQUEST);
          }
      }
docs: Copies properties.
  
  @param   dest    The object to which the properties will be copied.
  @param   source  The object whose properties are copied
  
  @throws  WebApplicationException  Throws exception if beanutils encounter a problem.