<s>[INST] get a device according to his id concode_field_sep Object synclock concode_elem_sep Map<String,BasicDevice> devices concode_field_sep Device addDevice concode_elem_sep void removeDevice [/INST] Device function ( String arg0 ) { if ( ( arg0 == null ) || ( arg0 . trim ( ) . equals ( "srini_string" ) ) ) { throw new NullIdException ( ) ; } else { if ( this . devices . containsKey ( arg0 ) ) { return this . devices . get ( arg0 ) ; } else { throw new UnknownDeviceException ( ) ; } } </s>