code: public static List<ModelError> validateComponentRecipes( File applicationFilesDirectory, Component component ) {
  
  		List<ModelError> result;
  		if( "puppet".equalsIgnoreCase( component.getInstallerName()))
  			result = validatePuppetComponent( applicationFilesDirectory, component );
  		else if( "script".equalsIgnoreCase( component.getInstallerName()))
  			result = validateScriptComponent( applicationFilesDirectory, component );
  		else
  			result = Collections.emptyList();
  
  		return result;
  	}
docs: Validates the recipes of a component.
  @param applicationFilesDirectory the application's directory
  @param component the component
  @return a non-null list of errors