package com.commercetools.sunrise.common.pages;

import com.commercetools.sunrise.common.contexts.UserContext;
import com.commercetools.sunrise.framework.ControllerComponent;
import com.commercetools.sunrise.hooks.PageDataHook;
import io.sphere.sdk.models.Base;

import javax.inject.Inject;

public abstract class HeroldComponentBase extends Base implements ControllerComponent, PageDataHook {
    @Inject
    private UserContext userContext;

    @Override
    public void acceptPageData(final PageData pageData) {
        updateMeta(pageData.getMeta());
    }

    protected void updateMeta(final PageMeta meta) {
    }

    protected String languageTag() {
        return userContext.languageTag();
    }
}

@@ -207,24 +207,34 @@
 e.hooks.
+consumers.
 PageData
 Hook;%0Aim
@@ -221,24 +221,29 @@
 ers.PageData
+Ready
 Hook;%0Aimport
@@ -395,16 +395,21 @@
 PageData
+Ready
 Hook %7B%0A 
@@ -491,22 +491,18 @@
 oid 
-accept
+on
 PageData
 (fin
@@ -497,16 +497,21 @@
 PageData
+Ready
 (final P

Fix compile error