public static void setInstance ( Cache cache ) throws GuildWars2Exception { if ( instance != null ) throw new GuildWars2Exception ( ErrorCode . Other , "Instance already initialized" ) ; instance = new GuildWars2 ( cache ) ; }
Use this to initialize instance with custom cache