ArrayList<JSESecurityMetaData> unifiedsecurityMetaData = new ArrayList<JSESecurityMetaData>();
if (securityConstraints != null)
{
for (SecurityConstraintMetaData securityMetaData : securityConstraints)
{
JSESecurityMetaData current = new JSESecurityMetaData();
unifiedsecurityMetaData.add(current);
current.setTransportGuarantee(securityMetaData.getTransportGuarantee().name());
WebResourceCollectionsMetaData resources = securityMetaData.getResourceCollections();
for (WebResourceCollectionMetaData webResource : resources)
{
JSEResourceCollection currentResource = current.addWebResource(webResource.getName());
for (String currentPattern : webResource.getUrlPatterns())
{
currentResource.addPattern(currentPattern);
}
}