try {
Long timestamp = Long.parseLong(command.getParameterAsString("LEASE_TIME"));
leaseTime = Calendar.getInstance();
leaseTime.setTimeInMillis(timestamp);
logger.debug("leaseTime = " + leaseTime.getTime());
Lease lease = new Lease();
lease.setLeaseId(leaseId);
lease.setUserId(userId);
lease.setLeaseTime(leaseTime);
boundedLeaseTime = leaseManager.setLease(lease);
command.getResult().addParameter("LEASE_TIME", boundedLeaseTime);
logger.debug("boundedLeaseTime = " + boundedLeaseTime);
} catch (IllegalArgumentException e) {
logger.error(e.getMessage());