}
else
{
// The Adapter Extension has not been found
// Creating an "unknown" Adapter Extension
UnknownLdapServerAdapterExtension unknownLdapServerAdapterExtension = new UnknownLdapServerAdapterExtension();
// Adapter Id
unknownLdapServerAdapterExtension.setId( adapterId );
// Adapter Name
Attribute adapterNameAttribute = element.attribute( ADAPTER_NAME_ATTRIBUTE );
if ( adapterNameAttribute != null )
{
unknownLdapServerAdapterExtension.setName( adapterNameAttribute.getValue() );
}
// Adapter Vendor
Attribute adapterVendorAttribute = element.attribute( ADAPTER_VENDOR_ATTRIBUTE );
if ( adapterVendorAttribute != null )
{
unknownLdapServerAdapterExtension.setVendor( adapterVendorAttribute.getValue() );
}
// Adapter Version
Attribute adapterVersionAttribute = element.attribute( ADAPTER_VERSION_ATTRIBUTE );
if ( adapterVersionAttribute != null )
{
unknownLdapServerAdapterExtension.setVersion( adapterVersionAttribute.getValue() );
}
// Assigning the "unknown" Adapter Extension to the server
server.setLdapServerAdapterExtension( unknownLdapServerAdapterExtension );
}