PortablePreconditions.checkNotNull( "type",
type );
PortablePreconditions.checkNotNull( "resource",
resource );
final String destinationPath = resource.toUri().toString().substring( projectPrefix.length() + 1 );
switch ( type ) {
case ADD:
case UPDATE:
//Add/update resource
final InputStream is = ioService.newInputStream( resource );