private void validate(Task task) {
	    try {
            Preconditions.checkNotNull(task, "task object cannot be null");
            Preconditions.checkNotNull(task.getTaskId(), "Task id cannot be null");
            Preconditions.checkNotNull(task.getWorkflowInstanceId(), "Workflow instance id cannot be null");
            Preconditions.checkNotNull(task.getReferenceTaskName(), "Task reference name cannot be null");
        } catch (NullPointerException npe){
	        throw new ApplicationException(Code.INVALID_INPUT, npe.getMessage(), npe);
        }
    }
private void validate ( Task task ) { try { Preconditions . checkNotNull ( task , "task object cannot be null" ) ; Preconditions . checkNotNull ( task . getTaskId ( ) , "Task id cannot be null" ) ; Preconditions . checkNotNull ( task . getWorkflowInstanceId ( ) , "Workflow instance id cannot be null" ) ; Preconditions . checkNotNull ( task . getReferenceTaskName ( ) , "Task reference name cannot be null" ) ; } catch ( NullPointerException npe ) { throw new ApplicationException ( Code . INVALID_INPUT , npe . getMessage ( ) , npe ) ; } }
@param task
@throws ApplicationException