code formatting and exception handling
updates to OSGi regions impl