{
if ( LOG.isDebugEnabled() )
{
LOG.debug( MSG.getMessage( Keys.GET_RP_REQ, requestDoc.toString() ) );
}
GetResourcePropertyResponseDocument responseDoc = createResponseDocument();
QName propName = requestDoc.getGetResourceProperty();
ResourceProperty prop = getProperties().get( propName );
if ( prop == null )
{
throw new InvalidResourcePropertyQNameFaultException( propName );
}
refreshProperty( prop );
Iterator propElemIter = prop.iterator();
while ( propElemIter.hasNext() )
{
XmlObject propElem = (XmlObject) propElemIter.next();
XmlBeanUtils.addChildElement( responseDoc.getGetResourcePropertyResponse(),
propElem );
}
return responseDoc;
}