su = new ServiceUnit();
su.setComponent(WSNSpringComponent.this);
WSNDeployer deployer = new WSNDeployer(WSNSpringComponent.this);
if (resources != null) {
for (int i = 0; i < resources.length; i++) {
Endpoint ep = deployer.createEndpoint(resources[i].getURL());
ep.setServiceUnit(su);
su.addEndpoint(ep);
}
}
if (requests != null) {