// Path: aemsolrsearch-geometrixx-media-sample/src/main/java/com/headwire/aemsolrsearch/geometrixxmedia/model/exceptions/SlingModelsException.java
// public class SlingModelsException extends Exception {
// 
// 	public SlingModelsException(String message) {
// 		super(message);
// 	}
// 
// }


import com.headwire.aemsolrsearch.geometrixxmedia.model.exceptions.SlingModelsException;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceUtil;
import org.apache.sling.models.annotations.Model;
import org.apache.solr.common.SolrInputDocument;
import org.json.simple.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.inject.Named;
package com.headwire.aemsolrsearch.geometrixxmedia.model;



/**
 * Sling model representing a Geometrixx Media Page.
 *
 */
@Model(adaptables = Resource.class, adapters = {GeometrixxMediaContentType.class, GeometrixxMediaPage.class})
public class GeometrixxMediaPage implements GeometrixxMediaContentType{

    private static final Logger LOG = LoggerFactory.getLogger(GeometrixxMediaPage.class);

    private GeometrixxMediaPageContent pageContent;

    @Inject @Named("jcr:content")
    private Resource jcrResource;

    @PostConstruct
// Path: aemsolrsearch-geometrixx-media-sample/src/main/java/com/headwire/aemsolrsearch/geometrixxmedia/model/exceptions/SlingModelsException.java
// public class SlingModelsException extends Exception {
// 
// 	public SlingModelsException(String message) {
// 		super(message);
// 	}
// 
// }


// Path: aemsolrsearch-geometrixx-media-sample/src/main/java/com/headwire/aemsolrsearch/geometrixxmedia/model/GeometrixxMediaPage.java
import com.headwire.aemsolrsearch.geometrixxmedia.model.exceptions.SlingModelsException;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceUtil;
import org.apache.sling.models.annotations.Model;
import org.apache.solr.common.SolrInputDocument;
import org.json.simple.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.inject.Named;

package com.headwire.aemsolrsearch.geometrixxmedia.model;



/**
 * Sling model representing a Geometrixx Media Page.
 *
 */
@Model(adaptables = Resource.class, adapters = {GeometrixxMediaContentType.class, GeometrixxMediaPage.class})
public class GeometrixxMediaPage implements GeometrixxMediaContentType{

    private static final Logger LOG = LoggerFactory.getLogger(GeometrixxMediaPage.class);

    private GeometrixxMediaPageContent pageContent;

    @Inject @Named("jcr:content")
    private Resource jcrResource;

    @PostConstruct
    public void init() throws SlingModelsException {