* @deprecated Use {@link com.volantis.mcs.project.PolicyBuilderManager}
*/
public RepositoryConnection getPageConnection() {
if (pageConnection == null) {
Volantis volantis = pageContext.getVolantisBean();
InternalProject project = volantis.getDefaultProject();
LocalPolicySource source = (LocalPolicySource) project.getPolicySource();
LocalRepository repository = source.getRepository();
try {
pageConnection = repository.connect();
} catch (RepositoryException e) {
throw new ExtendedRuntimeException(e);