private static F.Promise<Pair<URI, Boolean>> install(final URI appUri, final String playAppBaseUrl)
{
final String baseUrl = appUri.toString();
LOGGER.info("Attempting to install addon with baseURL = " + playAppBaseUrl + " to application at url = " + baseUrl);
return new UpmClient(baseUrl).install(playAppBaseUrl, new F.Function<Boolean, F.Promise<Boolean>>()
{
@Override
public F.Promise<Boolean> apply(Boolean installed) throws Throwable
{
LOGGER.info((installed ? "Succeeded" : "Failed") + " installing addon with baseURL = " + playAppBaseUrl +