public List < Attribute > setupEnvironment ( Map < URI , AttributeValue > e ) { if ( e == null || e . size ( ) == 0 ) { return Collections . emptyList ( ) ; } List < Attribute > environment = new ArrayList < Attribute > ( e . size ( ) ) ; for ( URI uri : e . keySet ( ) ) { environment . add ( new SingletonAttribute ( uri , null , null , e . get ( uri ) ) ) ; } return environment ; }
Creates the Environment attributes .