code: public void validate() {
  
  		ErrorDetails details = null;
  		if( this.fileName != null )
  			details = ErrorDetails.file( this.fileName );
  
  		if( this.failed ) {
  			this.errors.add( new ModelError( ErrorCode.REC_TARGET_INVALID_FILE_OR_CONTENT, this.modelObject, details ));
  
  		} else {
  			String id = this.props.getProperty( Constants.TARGET_PROPERTY_ID );
  			if( Utils.isEmptyOrWhitespaces( id ))
  				this.errors.add( new ModelError( ErrorCode.REC_TARGET_NO_ID, this.modelObject, details ));
  
  			String handler = this.props.getProperty( Constants.TARGET_PROPERTY_HANDLER );
  			if( Utils.isEmptyOrWhitespaces( handler ))
  				this.errors.add( new ModelError( ErrorCode.REC_TARGET_NO_HANDLER, this.modelObject, details ));
  
  			String name = this.props.getProperty( Constants.TARGET_PROPERTY_NAME );
  			if( Utils.isEmptyOrWhitespaces( name ))
  				this.errors.add( new ModelError( ErrorCode.REC_TARGET_NO_NAME, this.modelObject, details ));
  		}
  	}
docs: Validates target properties.