String policyContent = getFileContent(policyFile);
ConnectorDescriptor connectorDescriptor = getConnectorDescriptor(moduleName);
Set securityPermissions = connectorDescriptor.getSecurityPermissions();
Iterator it = securityPermissions.iterator();
SecurityPermission secPerm = null;
String permissionString = null;
while (it.hasNext()) {
secPerm = (SecurityPermission) it.next();
permissionString = secPerm.getPermission();
int intIndex = policyContent.indexOf(permissionString);
if (intIndex == -1) {
if (permissionString != null) {
if (policyString != null) {
policyString = policyString + "\n \n" + permissionString;