package woko.ext.usermanagement.facets.registration;

import net.sourceforge.jfacets.IFacetDescriptorManager;
import net.sourceforge.jfacets.annotations.FacetKey;
import woko.ext.usermanagement.core.DatabaseUserManager;
import woko.ext.usermanagement.core.User;
import woko.facets.BaseFragmentFacet;
import woko.persistence.ObjectStore;
import woko.users.UsernameResolutionStrategy;

@FacetKey(name="renderRegisterProperties", profileId = "all")
public class RenderRegisterProperties<T extends User,
        OsType extends ObjectStore,
        UmType extends DatabaseUserManager<?,T>,
        UnsType extends UsernameResolutionStrategy,
        FdmType extends IFacetDescriptorManager
        > extends BaseFragmentFacet<OsType,UmType,UnsType,FdmType> {

    public static final String FACET_NAME = "renderRegisterProperties";
    public static final String FRAGMENT_PATH = "/WEB-INF/woko/ext/usermanagement/renderRegisterProperties.jsp";

    private Register registerFacet;

    public String getPath() {
        return FRAGMENT_PATH;
    }

    public String getReCaptchaPublicKey() {
        return registerFacet.getReCaptchaPublicKey();
    }

    public String getReCaptchaPrivateKey() {
        return registerFacet.getReCaptchaPrivateKey();
    }

    public boolean isUseCaptcha() {
        return registerFacet.isUseCaptcha();
    }

    public Register getRegisterFacet(){
        if (registerFacet==null)
            registerFacet = getWoko().getFacet("register", getRequest(), null);
        return registerFacet;
    }
}

package woko.ext.usermanagement.facets.registration;

import net.sourceforge.jfacets.IFacetDescriptorManager;
import net.sourceforge.jfacets.annotations.FacetKey;
import woko.ext.usermanagement.core.DatabaseUserManager;
import woko.ext.usermanagement.core.User;
import woko.facets.BaseFragmentFacet;
import woko.persistence.ObjectStore;
import woko.users.UsernameResolutionStrategy;

@FacetKey(name="renderRegisterProperties", profileId = "all")
public class RenderRegisterProperties<T extends User,
        OsType extends ObjectStore,
        UmType extends DatabaseUserManager<?,T>,
        UnsType extends UsernameResolutionStrategy,
        FdmType extends IFacetDescriptorManager
        > extends BaseFragmentFacet<OsType,UmType,UnsType,FdmType> {

    public static final String FACET_NAME = "renderRegisterProperties";
    public static final String FRAGMENT_PATH = "/WEB-INF/woko/ext/usermanagement/renderRegisterProperties.jsp";

    private Register registerFacet;

    public String getPath() {
        return FRAGMENT_PATH;
    }

    public String getReCaptchaPublicKey() {
        return getRegisterFacet().getReCaptchaPublicKey();
    }

    public String getReCaptchaPrivateKey() {
        return getRegisterFacet().getReCaptchaPrivateKey();
    }

    public boolean isUseCaptcha() {
        return getRegisterFacet().isUseCaptcha();
    }

    public Register getRegisterFacet(){
        if (registerFacet==null)
            registerFacet = getWoko().getFacet("register", getRequest(), null);
        return registerFacet;
    }
}

Use getter woko use Java...