Add some constraints.
Some Adjustmenet on OsgiPortal.js.
Complete Integration Test for OsgiPortal.js