public static void writeProject ( JSONWriter writer , Project project ) throws IllegalArgumentException , JSONException { /* Validate project */ if ( project . getName ( ) == null ) throw new IllegalArgumentException ( "Project name must be set to create a new project" ) ; if ( project . getIdentifier ( ) == null ) throw new IllegalArgumentException ( "Project identifier must be set to create a new project" ) ; writeProject ( project , writer ) ; }
Writes a create project request .