}
public static SandeshaPolicyBean loadPropertiesFromModuleDesc(AxisModule desc) throws SandeshaException {
SandeshaPolicyBean propertyBean = new SandeshaPolicyBean();
Parameter expoBackoffParam = desc.getParameter(Sandesha2Constants.Properties.ExponentialBackoff);
String expoBackoffStr = (String) expoBackoffParam.getValue();
loadExponentialBackoff(expoBackoffStr, propertyBean);
Parameter retransmissionIntParam = desc.getParameter(Sandesha2Constants.Properties.RetransmissionInterval);
String retransmissionIntStr = (String) retransmissionIntParam.getValue();
loadRetransmissionInterval(retransmissionIntStr, propertyBean);
Parameter acknowledgementIntParam = desc.getParameter(Sandesha2Constants.Properties.AcknowledgementInterval);
String acknowledgementIntStr = (String) acknowledgementIntParam.getValue();
loadAcknowledgementInterval(acknowledgementIntStr, propertyBean);
Parameter inactivityTimeoutParam = desc.getParameter(Sandesha2Constants.Properties.InactivityTimeout);
String inactivityTimeoutStr = (String) inactivityTimeoutParam.getValue();
Parameter inactivityTimeoutMeasureParam = desc
.getParameter(Sandesha2Constants.Properties.InactivityTimeoutMeasure);
String inactivityTimeoutMeasure = (String) inactivityTimeoutMeasureParam.getValue();
loadInactivityTimeout(inactivityTimeoutStr, inactivityTimeoutMeasure, propertyBean);
Parameter sequenceRemovalTimeoutParam = desc.getParameter(Sandesha2Constants.Properties.SequenceRemovalTimeout);
String sequenceRemovalTimeoutStr = (String) sequenceRemovalTimeoutParam.getValue();
Parameter sequenceRemovalTimeoutMeasureParam = desc
.getParameter(Sandesha2Constants.Properties.SequenceRemovalTimeoutMeasure);
String sequenceRemovalTimeoutMeasure = (String) sequenceRemovalTimeoutMeasureParam.getValue();
loadSequenceRemovalTimeout(sequenceRemovalTimeoutStr, sequenceRemovalTimeoutMeasure, propertyBean);
// Parameter storageMgrClassParam =
// desc.getParameter(Sandesha2Constants.Properties.StorageManager);
// String storageMgrClassStr = (String) storageMgrClassParam.getValue();
// loadStoragemanagerClass(storageMgrClassStr,propertyBean);
Parameter inMemoryStorageMgrClassParam = desc
.getParameter(Sandesha2Constants.Properties.InMemoryStorageManager);
String inMemoryStorageMgrClassStr = (String) inMemoryStorageMgrClassParam.getValue();
loadInMemoryStoragemanagerClass(inMemoryStorageMgrClassStr, propertyBean);
Parameter permanentStorageMgrClassParam = desc
.getParameter(Sandesha2Constants.Properties.PermanentStorageManager);
String permanentStorageMgrClassStr = (String) permanentStorageMgrClassParam.getValue();
loadPermanentStoragemanagerClass(permanentStorageMgrClassStr, propertyBean);
Parameter inOrderInvocationParam = desc.getParameter(Sandesha2Constants.Properties.InOrderInvocation);
String inOrderInvocation = (String) inOrderInvocationParam.getValue();
loadInOrderInvocation(inOrderInvocation, propertyBean);
Parameter enableMakeConnectionParam = desc.getParameter(Sandesha2Constants.Properties.EnableMakeConnection);
String enableMakeConnection = (String) enableMakeConnectionParam.getValue();
loadEnableMakeConnection(enableMakeConnection, propertyBean);
Parameter useSerializationParam = desc.getParameter(Sandesha2Constants.Properties.UseMessageSerialization);
String useSerialization = (String) useSerializationParam.getValue();
loadUseSerialization(useSerialization, propertyBean);
Parameter messageTypesToDropParam = desc.getParameter(Sandesha2Constants.Properties.MessageTypesToDrop);
String messageTypesToDrop = (String) messageTypesToDropParam.getValue();
loadMessageTypesToDrop(messageTypesToDrop, propertyBean);
Parameter securityManagerClassParam = desc.getParameter(Sandesha2Constants.Properties.SecurityManager);
String securityManagerClassStr = (String) securityManagerClassParam.getValue();
loadSecurityManagerClass(securityManagerClassStr,propertyBean);
return propertyBean;
}