Added licenses to Java source