/******************************************************************************
 *  Copyright (c) 2012 GitHub Inc.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *    Kevin Sawicki (GitHub Inc.) - initial API and implementation
 *****************************************************************************/
package com.github.mobile.core.gist;

import com.github.mobile.core.ResourcePager;

import org.eclipse.egit.github.core.Gist;

/**
 * Pager over Gists
 */
public abstract class GistPager extends ResourcePager<Gist> {

    private final GistStore store;

    /**
     * Create pager
     *
     * @param store
     */
    public GistPager(final GistStore store) {
        this.store = store;
    }

    @Override
    protected Object getId(Gist resource) {
        return resource.getId();
    }

    @Override
    protected Gist register(Gist resource) {
        return store.addGist(resource);
    }
}

@@ -1,87 +1,9 @@
 /*
-*****************************************************************************
 %0A *
- 
  Cop
@@ -12,12 +12,8 @@
 ight
- (c)
  201
@@ -32,210 +32,190 @@
 .%0A *
-  All rights reserved. This program and the accompanying materials%0A *  are made available under the terms of the Eclipse Public License v1.0%0A *  which accompanies this distribution, and is availabl
+%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the Licens
 e at%0A
+ *%0A
  *  
@@ -229,204 +229,365 @@
 www.
-eclips
+apach
 e.org/l
-egal/epl-v10.html%0A *%0A *  Contributors:%0A *    Kevin Sawicki (GitHub Inc.) - initial API and implementation%0A ****************************************************************************
+icenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A 
 */%0Ap

Update incorrect license header