private String getProjectIdForProjectName ( String projectName ) throws SDKException { String projectId = this . getProjectAgent ( ) . findAll ( ) . stream ( ) . filter ( p -> p . getName ( ) . equals ( projectName ) ) . findFirst ( ) . orElseThrow ( ( ) -> new SDKException ( "Did not find a Project named " + projectName , null , "Did not find a Project named " + projectName ) ) . getId ( ) ; this . projectAgent = null ; return projectId ; }
Return the project id for a given project name .