/**
  * Checks if the target's principal is not empty; if not, the credentials from the target is
  * returned - otherwise return the <code>defaultPassword</code>.
  *
  * @return the target's password if the target's principal is not empty, the <code>defaultPassword
  *     </code> otherwise.
  */
 public String getCredentials() {
   if (StringUtils.isNotEmpty(target.getPrincipal())) {
     return target.getCredentials();
   } else {
     return defaultPassword;
   }
 }
 /**
  * Checks if the target's principal is not empty; if not, this is returned - otherwise return the
  * <code>defaultPassword</code>.
  *
  * @return the target's principal if it is not empty, the <code>defaultPassword</code> otherwise.
  */
 public String getPrincipal() {
   String principal = target.getPrincipal();
   if (StringUtils.isNotEmpty(principal)) {
     return principal;
   } else {
     return defaultUser;
   }
 }