Developing and Enforcing Policies for Access Control, Resource Usage, and Adaptation - A Practical Approach