question: public void initialize ( ) throws PayloadException , NetworkException { try { UserProfile profile = ImsModule . getImsUserProfile ( ) ; xdmServerAddr = profile . getXdmServerAddr ( ) ; xdmServerLogin = profile . getXdmServerLogin ( ) ; xdmServerPwd = profile . getXdmServerPassword ( ) ; HttpResponse response = getXcapDocuments ( ) ; if ( ! response . isSuccessfullResponse ( ) ) { throw new NetworkException ( "Failed to get successfull response from presence server!" ) ; } InputSource input = new InputSource ( new ByteArrayInputStream ( response . getContent ( ) ) ) ; XcapDirectoryParser parser = new XcapDirectoryParser ( input ) ; documents = parser . getDocuments ( ) ; Folder folder = documents . get ( "rls-services" ) ; if ( ( folder == null ) || ( folder . getEntry ( ) == null ) ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "The rls-services document does not exist" ) ; } setRcsList ( ) ; } else { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "The rls-services document already exists" ) ; } } folder = documents . get ( "resource-lists" ) ; if ( ( folder == null ) || ( folder . getEntry ( ) == null ) ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "The resource-lists document does not exist" ) ; } setResourcesList ( ) ; } else { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "The resource-lists document already exists" ) ; } } folder = documents . get ( "org.openmobilealliance.pres-rules" ) ; if ( ( folder == null ) || ( folder . getEntry ( ) == null ) ) { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "The org.openmobilealliance.pres-rules document does not exist" ) ; } setPresenceRules ( ) ; } else { if ( sLogger . isActivated ( ) ) { sLogger . debug ( "The org.openmobilealliance.pres-rules document already exists" ) ; } } } catch ( ParserConfigurationException e ) { throw new PayloadException ( "Can't parse the XCAP directory document!" , e ) ; } catch ( SAXException e ) { throw new PayloadException ( "Can't parse the XCAP directory document!" , e ) ; } catch ( IOException e ) { throw new NetworkException ( "Can't parse the XCAP directory document!" , e ) ; } }
target:  Initialize the XDM interface