Merge "Xerox Print Service Recommendation Plug-in" am: c3e6fecc6d am: 02033fc7e8
am: 08ec110e20

* commit '08ec110e208e7f527cd010ee6455c0697f7a8deb':
  Xerox Print Service Recommendation Plug-in

Change-Id: I74236a8a45f43605dc2d5c713a166ab25e390d55
diff --git a/XeroxPrintServiceRecommendationPlugin/.gitignore b/XeroxPrintServiceRecommendationPlugin/.gitignore
new file mode 100755
index 0000000..4c9e2c6
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.gitignore
@@ -0,0 +1,8 @@
+*.iml

+.gradle

+/local.properties

+/.idea/workspace.xml

+/.idea/libraries

+.DS_Store

+/build

+/captures

diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/.name b/XeroxPrintServiceRecommendationPlugin/.idea/.name
new file mode 100755
index 0000000..d834741
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/.name
@@ -0,0 +1 @@
+XeroxPrintServiceRecommendationPlugin - Copy
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/compiler.xml b/XeroxPrintServiceRecommendationPlugin/.idea/compiler.xml
new file mode 100755
index 0000000..96cc43e
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/compiler.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="CompilerConfiguration">
+    <resourceExtensions />
+    <wildcardResourcePatterns>
+      <entry name="!?*.java" />
+      <entry name="!?*.form" />
+      <entry name="!?*.class" />
+      <entry name="!?*.groovy" />
+      <entry name="!?*.scala" />
+      <entry name="!?*.flex" />
+      <entry name="!?*.kt" />
+      <entry name="!?*.clj" />
+      <entry name="!?*.aj" />
+    </wildcardResourcePatterns>
+    <annotationProcessing>
+      <profile default="true" name="Default" enabled="false">
+        <processorPath useClasspath="true" />
+      </profile>
+    </annotationProcessing>
+  </component>
+</project>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/copyright/profiles_settings.xml b/XeroxPrintServiceRecommendationPlugin/.idea/copyright/profiles_settings.xml
new file mode 100755
index 0000000..c7d1c5a
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/copyright/profiles_settings.xml
@@ -0,0 +1,3 @@
+<component name="CopyrightManager">

+  <settings default="" />

+</component>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/encodings.xml b/XeroxPrintServiceRecommendationPlugin/.idea/encodings.xml
new file mode 100755
index 0000000..97626ba
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/encodings.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Encoding">
+    <file url="PROJECT" charset="UTF-8" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/findbugs-idea.xml b/XeroxPrintServiceRecommendationPlugin/.idea/findbugs-idea.xml
new file mode 100755
index 0000000..1a73c97
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/findbugs-idea.xml
@@ -0,0 +1,226 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="org.twodividedbyzero.idea.findbugs">
+    <option name="annotationTypeSettings">
+      <map>
+        <entry key="ExpPriority" value="-16777216;-1;-8355712;WAVE_UNDERSCORE;0;" />
+        <entry key="HighPriority" value="-65536;-1;-65536;WAVE_UNDERSCORE;1;" />
+        <entry key="IgnorePriority" value="-16777216;-1;-8650628;WAVE_UNDERSCORE;0;" />
+        <entry key="LowPriority" value="-16777216;-1;-16711936;BOXED;0;" />
+        <entry key="NormalPriority" value="-16777216;-1;-5066240;WAVE_UNDERSCORE;2;" />
+      </map>
+    </option>
+    <option name="_basePreferences">
+      <map>
+        <entry key="property.analysisEffortLevel" value="default" />
+        <entry key="property.analyzeAfterAutoMake" value="false" />
+        <entry key="property.analyzeAfterCompile" value="false" />
+        <entry key="property.annotationGutterIconEnabled" value="true" />
+        <entry key="property.annotationSuppressWarningsClass" value="edu.umd.cs.findbugs.annotations.SuppressFBWarnings" />
+        <entry key="property.annotationTextRangeMarkupEnabled" value="true" />
+        <entry key="property.exportAsHtml" value="true" />
+        <entry key="property.exportAsXml" value="true" />
+        <entry key="property.exportBaseDir" value="" />
+        <entry key="property.exportCreateArchiveDir" value="false" />
+        <entry key="property.exportOpenBrowser" value="true" />
+        <entry key="property.minPriorityToReport" value="Medium" />
+        <entry key="property.runAnalysisInBackground" value="false" />
+        <entry key="property.showHiddenDetectors" value="false" />
+        <entry key="property.toolWindowToFront" value="true" />
+      </map>
+    </option>
+    <option name="_detectors">
+      <map>
+        <entry key="AppendingToAnObjectOutputStream" value="true" />
+        <entry key="AtomicityProblem" value="true" />
+        <entry key="BadAppletConstructor" value="false" />
+        <entry key="BadResultSetAccess" value="true" />
+        <entry key="BadSyntaxForRegularExpression" value="true" />
+        <entry key="BadUseOfReturnValue" value="true" />
+        <entry key="BadlyOverriddenAdapter" value="true" />
+        <entry key="BooleanReturnNull" value="true" />
+        <entry key="BuildInterproceduralCallGraph" value="false" />
+        <entry key="BuildObligationPolicyDatabase" value="true" />
+        <entry key="BuildStringPassthruGraph" value="true" />
+        <entry key="CallToUnsupportedMethod" value="false" />
+        <entry key="CalledMethods" value="true" />
+        <entry key="CheckCalls" value="false" />
+        <entry key="CheckExpectedWarnings" value="false" />
+        <entry key="CheckImmutableAnnotation" value="true" />
+        <entry key="CheckRelaxingNullnessAnnotation" value="true" />
+        <entry key="CheckTypeQualifiers" value="true" />
+        <entry key="CloneIdiom" value="true" />
+        <entry key="ComparatorIdiom" value="true" />
+        <entry key="ConfusedInheritance" value="true" />
+        <entry key="ConfusionBetweenInheritedAndOuterMethod" value="true" />
+        <entry key="CovariantArrayAssignment" value="false" />
+        <entry key="CrossSiteScripting" value="true" />
+        <entry key="DefaultEncodingDetector" value="true" />
+        <entry key="DoInsideDoPrivileged" value="true" />
+        <entry key="DontCatchIllegalMonitorStateException" value="true" />
+        <entry key="DontIgnoreResultOfPutIfAbsent" value="true" />
+        <entry key="DontUseEnum" value="true" />
+        <entry key="DroppedException" value="true" />
+        <entry key="DumbMethodInvocations" value="true" />
+        <entry key="DumbMethods" value="true" />
+        <entry key="DuplicateBranches" value="true" />
+        <entry key="EmptyZipFileEntry" value="false" />
+        <entry key="EqualsOperandShouldHaveClassCompatibleWithThis" value="true" />
+        <entry key="ExplicitSerialization" value="true" />
+        <entry key="FieldItemSummary" value="true" />
+        <entry key="FinalizerNullsFields" value="true" />
+        <entry key="FindBadCast2" value="true" />
+        <entry key="FindBadForLoop" value="true" />
+        <entry key="FindBugsSummaryStats" value="true" />
+        <entry key="FindCircularDependencies" value="false" />
+        <entry key="FindComparatorProblems" value="true" />
+        <entry key="FindDeadLocalStores" value="true" />
+        <entry key="FindDoubleCheck" value="true" />
+        <entry key="FindEmptySynchronizedBlock" value="true" />
+        <entry key="FindFieldSelfAssignment" value="true" />
+        <entry key="FindFinalizeInvocations" value="true" />
+        <entry key="FindFloatEquality" value="true" />
+        <entry key="FindFloatMath" value="false" />
+        <entry key="FindHEmismatch" value="true" />
+        <entry key="FindInconsistentSync2" value="true" />
+        <entry key="FindJSR166LockMonitorenter" value="true" />
+        <entry key="FindLocalSelfAssignment2" value="true" />
+        <entry key="FindMaskedFields" value="true" />
+        <entry key="FindMismatchedWaitOrNotify" value="true" />
+        <entry key="FindNakedNotify" value="true" />
+        <entry key="FindNoSideEffectMethods" value="true" />
+        <entry key="FindNonSerializableStoreIntoSession" value="false" />
+        <entry key="FindNonSerializableValuePassedToWriteObject" value="false" />
+        <entry key="FindNonShortCircuit" value="true" />
+        <entry key="FindNullDeref" value="true" />
+        <entry key="FindNullDerefsInvolvingNonShortCircuitEvaluation" value="true" />
+        <entry key="FindOpenStream" value="true" />
+        <entry key="FindPuzzlers" value="true" />
+        <entry key="FindRefComparison" value="true" />
+        <entry key="FindReturnRef" value="true" />
+        <entry key="FindRoughConstants" value="true" />
+        <entry key="FindRunInvocations" value="true" />
+        <entry key="FindSelfComparison" value="true" />
+        <entry key="FindSelfComparison2" value="true" />
+        <entry key="FindSleepWithLockHeld" value="true" />
+        <entry key="FindSpinLoop" value="true" />
+        <entry key="FindSqlInjection" value="true" />
+        <entry key="FindTwoLockWait" value="true" />
+        <entry key="FindUncalledPrivateMethods" value="true" />
+        <entry key="FindUnconditionalWait" value="true" />
+        <entry key="FindUninitializedGet" value="true" />
+        <entry key="FindUnrelatedTypesInGenericContainer" value="true" />
+        <entry key="FindUnreleasedLock" value="true" />
+        <entry key="FindUnsatisfiedObligation" value="true" />
+        <entry key="FindUnsyncGet" value="true" />
+        <entry key="FindUseOfNonSerializableValue" value="true" />
+        <entry key="FindUselessControlFlow" value="true" />
+        <entry key="FindUselessObjects" value="true" />
+        <entry key="FormatStringChecker" value="true" />
+        <entry key="FunctionsThatMightBeMistakenForProcedures" value="true" />
+        <entry key="HugeSharedStringConstants" value="true" />
+        <entry key="IDivResultCastToDouble" value="true" />
+        <entry key="IncompatMask" value="true" />
+        <entry key="InconsistentAnnotations" value="true" />
+        <entry key="InefficientIndexOf" value="false" />
+        <entry key="InefficientInitializationInsideLoop" value="false" />
+        <entry key="InefficientMemberAccess" value="false" />
+        <entry key="InefficientToArray" value="false" />
+        <entry key="InfiniteLoop" value="true" />
+        <entry key="InfiniteRecursiveLoop" value="true" />
+        <entry key="InheritanceUnsafeGetResource" value="true" />
+        <entry key="InitializationChain" value="true" />
+        <entry key="InitializeNonnullFieldsInConstructor" value="true" />
+        <entry key="InstantiateStaticClass" value="true" />
+        <entry key="IntCast2LongAsInstant" value="true" />
+        <entry key="InvalidJUnitTest" value="true" />
+        <entry key="IteratorIdioms" value="true" />
+        <entry key="LazyInit" value="true" />
+        <entry key="LoadOfKnownNullValue" value="true" />
+        <entry key="LostLoggerDueToWeakReference" value="true" />
+        <entry key="MethodReturnCheck" value="true" />
+        <entry key="Methods" value="true" />
+        <entry key="MultithreadedInstanceAccess" value="true" />
+        <entry key="MutableEnum" value="true" />
+        <entry key="MutableLock" value="true" />
+        <entry key="MutableStaticFields" value="true" />
+        <entry key="Naming" value="true" />
+        <entry key="Noise" value="false" />
+        <entry key="NoiseNullDeref" value="false" />
+        <entry key="NoteAnnotationRetention" value="true" />
+        <entry key="NoteCheckReturnValueAnnotations" value="true" />
+        <entry key="NoteDirectlyRelevantTypeQualifiers" value="true" />
+        <entry key="NoteJCIPAnnotation" value="true" />
+        <entry key="NoteNonNullAnnotations" value="false" />
+        <entry key="NoteNonnullReturnValues" value="false" />
+        <entry key="NoteSuppressedWarnings" value="true" />
+        <entry key="NoteUnconditionalParamDerefs" value="true" />
+        <entry key="NumberConstructor" value="true" />
+        <entry key="OptionalReturnNull" value="true" />
+        <entry key="OverridingEqualsNotSymmetrical" value="true" />
+        <entry key="PreferZeroLengthArrays" value="true" />
+        <entry key="PublicSemaphores" value="false" />
+        <entry key="QuestionableBooleanAssignment" value="true" />
+        <entry key="ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass" value="true" />
+        <entry key="ReadReturnShouldBeChecked" value="true" />
+        <entry key="RedundantConditions" value="true" />
+        <entry key="RedundantInterfaces" value="true" />
+        <entry key="ReflectiveClasses" value="true" />
+        <entry key="RepeatedConditionals" value="true" />
+        <entry key="ResolveAllReferences" value="false" />
+        <entry key="RuntimeExceptionCapture" value="true" />
+        <entry key="SerializableIdiom" value="true" />
+        <entry key="StartInConstructor" value="true" />
+        <entry key="StaticCalendarDetector" value="true" />
+        <entry key="StringConcatenation" value="true" />
+        <entry key="SuperfluousInstanceOf" value="true" />
+        <entry key="SuspiciousThreadInterrupted" value="true" />
+        <entry key="SwitchFallthrough" value="true" />
+        <entry key="SynchronizationOnSharedBuiltinConstant" value="true" />
+        <entry key="SynchronizeAndNullCheckField" value="true" />
+        <entry key="SynchronizeOnClassLiteralNotGetClass" value="true" />
+        <entry key="SynchronizingOnContentsOfFieldToProtectField" value="true" />
+        <entry key="TestASM" value="false" />
+        <entry key="TestDataflowAnalysis" value="false" />
+        <entry key="TestingGround" value="false" />
+        <entry key="TestingGround2" value="false" />
+        <entry key="TrainFieldStoreTypes" value="true" />
+        <entry key="TrainLongInstantfParams" value="true" />
+        <entry key="TrainNonNullAnnotations" value="true" />
+        <entry key="TrainUnconditionalDerefParams" value="true" />
+        <entry key="URLProblems" value="true" />
+        <entry key="UncallableMethodOfAnonymousClass" value="true" />
+        <entry key="UnnecessaryMath" value="true" />
+        <entry key="UnreadFields" value="true" />
+        <entry key="UselessSubclassMethod" value="false" />
+        <entry key="VarArgsProblems" value="true" />
+        <entry key="VolatileUsage" value="true" />
+        <entry key="WaitInLoop" value="true" />
+        <entry key="WrongMapIterator" value="true" />
+        <entry key="XMLFactoryBypass" value="true" />
+      </map>
+    </option>
+    <option name="_reportCategories">
+      <map>
+        <entry key="BAD_PRACTICE" value="true" />
+        <entry key="CORRECTNESS" value="true" />
+        <entry key="EXPERIMENTAL" value="true" />
+        <entry key="I18N" value="true" />
+        <entry key="MALICIOUS_CODE" value="true" />
+        <entry key="MT_CORRECTNESS" value="true" />
+        <entry key="PERFORMANCE" value="true" />
+        <entry key="SECURITY" value="true" />
+        <entry key="STYLE" value="true" />
+      </map>
+    </option>
+    <option name="_annotationTypeSettings">
+      <map>
+        <entry key="ExpPriority" value="-16777216;-1;-8355712;WAVE_UNDERSCORE;0;" />
+        <entry key="HighPriority" value="-65536;-1;-65536;WAVE_UNDERSCORE;1;" />
+        <entry key="IgnorePriority" value="-16777216;-1;-8650628;WAVE_UNDERSCORE;0;" />
+        <entry key="LowPriority" value="-16777216;-1;-16711936;BOXED;0;" />
+        <entry key="NormalPriority" value="-16777216;-1;-5066240;WAVE_UNDERSCORE;2;" />
+      </map>
+    </option>
+  </component>
+</project>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/gradle.xml b/XeroxPrintServiceRecommendationPlugin/.idea/gradle.xml
new file mode 100755
index 0000000..1bbc21d
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/gradle.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="GradleSettings">
+    <option name="linkedExternalProjectsSettings">
+      <GradleProjectSettings>
+        <option name="distributionType" value="DEFAULT_WRAPPED" />
+        <option name="externalProjectPath" value="$PROJECT_DIR$" />
+        <option name="gradleJvm" value="1.7" />
+        <option name="modules">
+          <set>
+            <option value="$PROJECT_DIR$" />
+            <option value="$PROJECT_DIR$/app" />
+          </set>
+        </option>
+      </GradleProjectSettings>
+    </option>
+  </component>
+</project>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/inspectionProfiles/Project_Default.xml b/XeroxPrintServiceRecommendationPlugin/.idea/inspectionProfiles/Project_Default.xml
new file mode 100755
index 0000000..b0abd46
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,29 @@
+<component name="InspectionProjectProfileManager">

+  <profile version="1.0">

+    <option name="myName" value="Project Default" />

+    <inspection_tool class="AndroidLintPackageManagerGetSignatures" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="AndroidLintUsingHttp" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="ClassLoaderInstantiation" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="CloneableClassInSecureContext" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="CustomClassloader" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="CustomSecurityManager" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="DeserializableClassInSecureContext" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="DesignForExtension" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="JDBCExecuteWithNonConstantString" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="JDBCPrepareStatementWithNonConstantString" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="LoadLibraryWithNonConstantString" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false">

+      <option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" />

+      <option name="loggerFactoryMethodName" value="getLogger,getLogger,getLog,getLogger" />

+    </inspection_tool>

+    <inspection_tool class="NonFinalClone" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="NonStaticInnerClassInSecureContext" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="PublicStaticArrayField" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="PublicStaticCollectionField" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="RuntimeExecWithNonConstantString" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="SerializableClassInSecureContext" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="SystemProperties" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="SystemSetSecurityManager" enabled="true" level="ERROR" enabled_by_default="true" />

+    <inspection_tool class="UnsecureRandomNumberGeneration" enabled="true" level="ERROR" enabled_by_default="true" />

+  </profile>

+</component>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/inspectionProfiles/profiles_settings.xml b/XeroxPrintServiceRecommendationPlugin/.idea/inspectionProfiles/profiles_settings.xml
new file mode 100755
index 0000000..6933c1e
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/inspectionProfiles/profiles_settings.xml
@@ -0,0 +1,7 @@
+<component name="InspectionProjectProfileManager">

+  <settings>

+    <option name="PROJECT_PROFILE" value="Project Default" />

+    <option name="USE_PROJECT_PROFILE" value="true" />

+    <version value="1.0" />

+  </settings>

+</component>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/misc.xml b/XeroxPrintServiceRecommendationPlugin/.idea/misc.xml
new file mode 100755
index 0000000..ff45081
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/misc.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="EntryPointsManager">
+    <entry_points version="2.0" />
+  </component>
+  <component name="NullableNotNullManager">
+    <option name="myDefaultNullable" value="android.support.annotation.Nullable" />
+    <option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
+    <option name="myNullables">
+      <value>
+        <list size="4">
+          <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
+          <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
+          <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
+          <item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
+        </list>
+      </value>
+    </option>
+    <option name="myNotNulls">
+      <value>
+        <list size="4">
+          <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
+          <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
+          <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
+          <item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
+        </list>
+      </value>
+    </option>
+  </component>
+  <component name="ProjectInspectionProfilesVisibleTreeState">
+    <entry key="Project Default">
+      <profile-state>
+        <expanded-state>
+          <State>
+            <id />
+          </State>
+          <State>
+            <id>Android Lint</id>
+          </State>
+          <State>
+            <id>Encapsulation issuesJava</id>
+          </State>
+          <State>
+            <id>Java</id>
+          </State>
+          <State>
+            <id>Security issuesJava</id>
+          </State>
+        </expanded-state>
+        <selected-state>
+          <State>
+            <id>UseOfAnotherObjectsPrivateField</id>
+          </State>
+        </selected-state>
+      </profile-state>
+    </entry>
+  </component>
+  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
+    <OptionsSetting value="true" id="Add" />
+    <OptionsSetting value="true" id="Remove" />
+    <OptionsSetting value="true" id="Checkout" />
+    <OptionsSetting value="true" id="Update" />
+    <OptionsSetting value="true" id="Status" />
+    <OptionsSetting value="true" id="Edit" />
+    <ConfirmationsSetting value="0" id="Add" />
+    <ConfirmationsSetting value="0" id="Remove" />
+  </component>
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.7" project-jdk-type="JavaSDK">
+    <output url="file://$PROJECT_DIR$/build/classes" />
+  </component>
+  <component name="ProjectType">
+    <option name="id" value="Android" />
+  </component>
+  <component name="SvnConfiguration">
+    <configuration>C:\Users\hpatel\AppData\Roaming\Subversion</configuration>
+  </component>
+</project>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/modules.xml b/XeroxPrintServiceRecommendationPlugin/.idea/modules.xml
new file mode 100755
index 0000000..d10bc89
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/modules.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/XeroxPrintServiceRecommendationPlugin.iml" filepath="$PROJECT_DIR$/XeroxPrintServiceRecommendationPlugin.iml" />
+      <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
+    </modules>
+  </component>
+</project>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/runConfigurations.xml b/XeroxPrintServiceRecommendationPlugin/.idea/runConfigurations.xml
new file mode 100755
index 0000000..7f68460
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="RunConfigurationProducerService">
+    <option name="ignoredProducers">
+      <set>
+        <option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
+        <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
+        <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
+      </set>
+    </option>
+  </component>
+</project>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/.idea/vcs.xml b/XeroxPrintServiceRecommendationPlugin/.idea/vcs.xml
new file mode 100755
index 0000000..6564d52
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/.idea/vcs.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/ReadMe.txt b/XeroxPrintServiceRecommendationPlugin/ReadMe.txt
new file mode 100755
index 0000000..efc0cd2
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/ReadMe.txt
@@ -0,0 +1,7 @@
+Xerox Print Service Recommendation Plugin:

+

+This plugin discovers xerox printers on the network via mDNS, reports number of xerox printers discovered on the network  and provides print service recommendation (Xerox Print Service Plug-in in google play) to the Print Service Recommendation Service.

+Sample activity in the project triggers this plug-in discovery and reports back the number of printers discovered.

+

+All of the code is part of Android Open Source Project and is licensed under standard apache 2.0 license.

+http://www.apache.org/licenses/LICENSE-2.0
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/app/.gitignore b/XeroxPrintServiceRecommendationPlugin/app/.gitignore
new file mode 100755
index 0000000..3543521
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/.gitignore
@@ -0,0 +1 @@
+/build

diff --git a/XeroxPrintServiceRecommendationPlugin/app/build.gradle b/XeroxPrintServiceRecommendationPlugin/app/build.gradle
new file mode 100755
index 0000000..c4598b6
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/build.gradle
@@ -0,0 +1,32 @@
+apply plugin: 'com.android.application'

+

+android {

+    compileSdkVersion 'android-N'

+    buildToolsVersion "23.0.3"

+    //compileSdkVersion 23

+    //buildToolsVersion '23.0.2'

+

+    defaultConfig {

+        applicationId "com.xerox.printservicerecommendationplugin"

+        minSdkVersion 'N'

+        targetSdkVersion 'N'

+        //minSdkVersion 21

+        //targetSdkVersion 23

+        versionCode 1

+        versionName "1.0"

+    }

+    buildTypes {

+        release {

+            minifyEnabled false

+            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

+        }

+    }

+}

+

+dependencies {

+    compile fileTree(dir: 'libs', include: ['*.jar'])

+    testCompile 'junit:junit:4.12'

+//    compile 'com.android.support:appcompat-v7:24.0.0-alpha2'

+    compile 'com.android.support:appcompat-v7:23.1.1'

+    compile 'com.android.support:design:23.1.0'

+}

diff --git a/XeroxPrintServiceRecommendationPlugin/app/proguard-rules.pro b/XeroxPrintServiceRecommendationPlugin/app/proguard-rules.pro
new file mode 100755
index 0000000..d11d05f
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.

+# By default, the flags in this file are appended to flags specified

+# in D:\Android\sdk/tools/proguard/proguard-android.txt

+# You can edit the include path and order by changing the proguardFiles

+# directive in build.gradle.

+#

+# For more details, see

+#   http://developer.android.com/guide/developing/tools/proguard.html

+

+# Add any project specific keep options here:

+

+# If your project uses WebView with JS, uncomment the following

+# and specify the fully qualified class name to the JavaScript interface

+# class:

+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {

+#   public *;

+#}

diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/androidTest/java/com/xerox/printservicerecommendationplugin/ApplicationTest.java b/XeroxPrintServiceRecommendationPlugin/app/src/androidTest/java/com/xerox/printservicerecommendationplugin/ApplicationTest.java
new file mode 100755
index 0000000..30c969b
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/androidTest/java/com/xerox/printservicerecommendationplugin/ApplicationTest.java
@@ -0,0 +1,29 @@
+/*

+ * Copyright (C) 2016 The Android Open Source Project

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *      http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+package com.xerox.printservicerecommendationplugin;

+

+import android.app.Application;

+import android.test.ApplicationTestCase;

+

+/**

+ * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a>

+ */

+public class ApplicationTest extends ApplicationTestCase<Application> {

+    public ApplicationTest() {

+        super(Application.class);

+

+    }

+}
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/AndroidManifest.xml b/XeroxPrintServiceRecommendationPlugin/app/src/main/AndroidManifest.xml
new file mode 100755
index 0000000..c965bcb
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/AndroidManifest.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>

+<manifest xmlns:android="http://schemas.android.com/apk/res/android"

+    package="com.xerox.printservicerecommendationplugin" >

+

+    <uses-permission android:name="android.permission.INTERNET"/>

+    <application

+        android:allowBackup="true"

+        android:icon="@mipmap/ic_launcher"

+        android:label="@string/app_name"

+        android:supportsRtl="true"

+        android:theme="@style/AppTheme" >

+        <activity android:name=".RecommendationPluginInitActivity" >

+            <intent-filter>

+                <action android:name="android.intent.action.MAIN" />

+

+                <category android:name="android.intent.category.LAUNCHER" />

+            </intent-filter>

+        </activity>

+    </application>

+

+</manifest>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/MDnsUtils.java b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/MDnsUtils.java
new file mode 100755
index 0000000..a6b490e
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/MDnsUtils.java
@@ -0,0 +1,91 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.xerox.printservicerecommendationplugin;
+
+import android.net.nsd.NsdServiceInfo;
+import android.text.TextUtils;
+
+import java.nio.charset.StandardCharsets;
+import java.util.Locale;
+import java.util.Map;
+
+public class MDnsUtils {
+    public static final String ATTRIBUTE__TY = "ty";
+    public static final String ATTRIBUTE__PRODUCT = "product";
+    public static final String ATTRIBUTE__USB_MFG = "usb_MFG";
+    public static final String ATTRIBUTE__USB_MDL = "usb_MDL";
+    public static final String ATTRIBUTE__MFG = "mfg";
+    public static final String EXCLUDE_FUJI = "fuji";
+    public static final String PDL_ATTRIBUTE = "pdl";
+
+    public static boolean isVendorPrinter(NsdServiceInfo networkDevice, String[] vendorValues) {
+
+        Map<String, byte[]> attributes = networkDevice.getAttributes();
+        String product = getString(attributes.get(ATTRIBUTE__PRODUCT));
+        String ty = getString(attributes.get(ATTRIBUTE__TY));
+        String usbMfg = getString(attributes.get(ATTRIBUTE__USB_MFG));
+        String usbMdl = getString(attributes.get(ATTRIBUTE__USB_MDL));
+        String mfg = getString(attributes.get(ATTRIBUTE__MFG));
+        return containsVendor(product, vendorValues) || containsVendor(ty, vendorValues) || containsVendor(usbMfg, vendorValues) || containsVendor(mfg, vendorValues) && !(containsString(ty, EXCLUDE_FUJI) || containsString(product, EXCLUDE_FUJI) || containsString(usbMdl, EXCLUDE_FUJI));
+
+    }
+
+    public static String getVendor(NsdServiceInfo networkDevice) {
+        String vendor;
+
+        Map<String, byte[]> attributes = networkDevice.getAttributes();
+        vendor = getString(attributes.get(ATTRIBUTE__MFG));
+        if (!TextUtils.isEmpty(vendor)) return vendor;
+        vendor = getString(attributes.get(ATTRIBUTE__USB_MFG));
+        if (!TextUtils.isEmpty(vendor)) return vendor;
+
+        return null;
+    }
+
+    public static boolean checkPDLSupport(NsdServiceInfo networkDevice, String[] pdlFormats) {
+        if (pdlFormats == null) return false;
+
+        String pdls = MDnsUtils.getString(networkDevice.getAttributes().get(PDL_ATTRIBUTE));
+        if (pdls != null) {
+            for (String pdl : pdlFormats) {
+                if (pdls.contains(pdl)) {
+                    return true;
+                }
+            }
+        }
+        return false;
+    }
+
+    private static boolean containsVendor(String container, String[] vendorValues) {
+        if ((container == null) || (vendorValues == null)) return false;
+        for (String value : vendorValues) {
+            if (containsString(container, value)
+                    || containsString(container.toLowerCase(Locale.US), value.toLowerCase(Locale.US))
+                    || containsString(container.toUpperCase(Locale.US), value.toUpperCase(Locale.US)))
+                return true;
+        }
+        return false;
+    }
+
+    private static String getString(byte[] value) {
+        if (value != null) return new String(value, StandardCharsets.UTF_8);
+        return null;
+    }
+
+    private static boolean containsString(String container, String contained) {
+        return (container != null) && (contained != null) && (container.equalsIgnoreCase(contained) || container.contains(contained + " "));
+    }
+}
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/PrintServicePlugin.java b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/PrintServicePlugin.java
new file mode 100755
index 0000000..31a6a78
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/PrintServicePlugin.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.xerox.printservicerecommendationplugin;
+
+import android.support.annotation.IntRange;
+import android.support.annotation.NonNull;
+import android.support.annotation.StringRes;
+
+/**
+ * Interface to be implemented by each print service plugin.
+ * <p/>
+ * A print service plugin is a minimal version of a real {@link android.printservice.PrintService
+ * print service}. You cannot print using the plugin. The only functionality in the plugin is to
+ * report the number of printers that the real service would discover.
+ */
+public interface PrintServicePlugin {
+   /**
+    * Call back used by the print service plugins.
+    */
+   interface PrinterDiscoveryCallback {
+       /**
+        * Announce that something changed and the UI for this plugin should be updated.
+        *
+        * @param numDiscoveredPrinters The number of printers discovered.
+        */
+       void onChanged(@IntRange(from = 0) int numDiscoveredPrinters);
+   }
+   /**
+    * Get the name (a string reference) of the {@link android.printservice.PrintService print
+    * service} with the {@link #getPackageName specified package name}. This is read once, hence
+    * returning different data at different times is not allowed.
+    *
+    * @return The name of the print service as a string reference. The localization is handled
+    *         outside of the plugin.
+    */
+   @StringRes int getName();
+   /**
+    * The package name of the full print service.
+    *
+    * @return The package name
+    */
+   @NonNull CharSequence getPackageName();
+   /**
+    * Start the discovery plugin.
+    *
+    * @param callback Callbacks used by this plugin.
+    *
+    * @throws Exception If anything went wrong when starting the plugin
+    */
+   void start(@NonNull PrinterDiscoveryCallback callback) throws Exception;
+   /**
+    * Stop the plugin. This can only return once the plugin is completely finished and cleaned up.
+    *
+    * @throws Exception If anything went wrong while stopping plugin
+    */
+   void stop() throws Exception;
+}
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/PrinterHashMap.java b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/PrinterHashMap.java
new file mode 100755
index 0000000..3b94d47
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/PrinterHashMap.java
@@ -0,0 +1,34 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.xerox.printservicerecommendationplugin;
+
+import android.net.nsd.NsdServiceInfo;
+
+import java.util.HashMap;
+
+public final class PrinterHashMap extends HashMap<String, NsdServiceInfo> {
+    public static String getKey(NsdServiceInfo serviceInfo) {
+        return serviceInfo.getServiceName();
+    }
+
+    public NsdServiceInfo addPrinter(NsdServiceInfo device) {
+        return put(getKey(device), device);
+    }
+
+    public NsdServiceInfo removePrinter(NsdServiceInfo device) {
+        return remove(getKey(device));
+    }
+}
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/RecommendationPluginInitActivity.java b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/RecommendationPluginInitActivity.java
new file mode 100755
index 0000000..c042a71
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/RecommendationPluginInitActivity.java
@@ -0,0 +1,68 @@
+/*

+ * Copyright (C) 2016 The Android Open Source Project

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *      http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+package com.xerox.printservicerecommendationplugin;

+

+import android.app.Activity;

+import android.os.Bundle;

+import android.util.Log;

+import android.widget.TextView;

+

+public class RecommendationPluginInitActivity extends Activity implements  PrintServicePlugin.PrinterDiscoveryCallback{

+

+    XeroxPrintServiceRecommendationPlugin mXeroxRecommendation;

+    String TAG = RecommendationPluginInitActivity.class.getSimpleName();

+    TextView tvCount;

+

+    @Override

+    protected void onCreate(Bundle savedInstanceState) {

+        super.onCreate(savedInstanceState);

+        setContentView(R.layout.activity_xerox_discovery);

+        tvCount = (TextView) findViewById(R.id.printer_count);

+        mXeroxRecommendation = new XeroxPrintServiceRecommendationPlugin(this);

+    }

+

+    @Override

+    public void onPause(){

+        super.onPause();

+        try {

+            mXeroxRecommendation.stop();

+        } catch (Exception e) {

+            e.printStackTrace();

+        }

+    }

+

+    @Override

+    public void onResume(){

+        super.onResume();

+        try {

+            mXeroxRecommendation.start(RecommendationPluginInitActivity.this);

+        } catch (Exception e) {

+            e.printStackTrace();

+        }

+    }

+

+    @Override

+    public void onChanged(final int numDiscoveredPrinters) {

+        Log.d(TAG,"xerox printer count:"+numDiscoveredPrinters);

+        runOnUiThread(new Runnable() {

+            @Override

+            public void run() {

+                tvCount.setText(String.valueOf(numDiscoveredPrinters));

+            }

+        });

+

+    }

+}

diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/ServiceResolver.java b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/ServiceResolver.java
new file mode 100755
index 0000000..922ee73
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/ServiceResolver.java
@@ -0,0 +1,195 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.xerox.printservicerecommendationplugin;
+
+import android.content.Context;
+import android.net.nsd.NsdManager;
+import android.net.nsd.NsdServiceInfo;
+import android.text.TextUtils;
+
+import java.util.ArrayList;
+import java.util.LinkedList;
+import java.util.List;
+
+public class ServiceResolver {
+
+    private final NsdManager mNSDManager;
+    private final String[] mServiceType;
+    private final Observer mObserver;
+    private final VendorInfo mVendorInfo;
+    private final String[] mPDLs;
+    private final PrinterHashMap mPrinterHashMap = new PrinterHashMap();
+    private final List<NsdManager.DiscoveryListener> mListeners = new ArrayList<>();
+
+    public interface Observer {
+        void dataSetChanged();
+    }
+
+    public ServiceResolver(Context context, Observer observer, VendorInfo vendorInfo, String[] serviceTypes, String[] pdls) {
+        mObserver = observer;
+        mServiceType = serviceTypes;
+        mNSDManager = (NsdManager) context.getSystemService(Context.NSD_SERVICE);
+        mVendorInfo = vendorInfo;
+        mPDLs = pdls;
+    }
+
+    public void start() {
+        stop();
+        for (final String service : mServiceType) {
+            NsdManager.DiscoveryListener listener = new NsdManager.DiscoveryListener() {
+                @Override
+                public void onStartDiscoveryFailed(String s, int i) {
+
+                }
+
+                @Override
+                public void onStopDiscoveryFailed(String s, int i) {
+
+                }
+
+                @Override
+                public void onDiscoveryStarted(String s) {
+
+                }
+
+                @Override
+                public void onDiscoveryStopped(String s) {
+
+                }
+
+                @Override
+                public void onServiceFound(NsdServiceInfo nsdServiceInfo) {
+                    queueRequest(nsdServiceInfo);
+                }
+
+                @Override
+                public void onServiceLost(NsdServiceInfo nsdServiceInfo) {
+                    removeRequest(nsdServiceInfo);
+                    printerRemoved(nsdServiceInfo);
+                }
+            };
+            mNSDManager.discoverServices(service, NsdManager.PROTOCOL_DNS_SD, listener);
+            mListeners.add(listener);
+        }
+    }
+
+    public void stop() {
+        for (NsdManager.DiscoveryListener listener : mListeners) {
+            mNSDManager.stopServiceDiscovery(listener);
+        }
+        mListeners.clear();
+        clearRequests();
+    }
+
+    //Resolving nsd services
+    private final LinkedList<NsdServiceInfo> mQueue = new LinkedList<>();
+    private final Object mLock = new Object();
+    private NsdServiceInfo mCurrentRequest = null;
+
+    private void queueRequest(NsdServiceInfo serviceInfo) {
+        synchronized (mLock) {
+            if (mQueue.contains(serviceInfo)) return;
+            mQueue.add(serviceInfo);
+            makeNextRequest();
+        }
+    }
+
+    private void removeRequest(NsdServiceInfo serviceInfo) {
+        synchronized (mLock) {
+            mQueue.remove(serviceInfo);
+            if ((mCurrentRequest != null) && serviceInfo.equals(mCurrentRequest))
+                mCurrentRequest = null;
+        }
+    }
+
+    private void clearRequests() {
+        synchronized (mLock) {
+            mQueue.clear();
+        }
+    }
+
+    private void makeNextRequest() {
+        synchronized (mLock) {
+            if (mCurrentRequest != null) return;
+            if (mQueue.isEmpty()) return;
+            mCurrentRequest = mQueue.removeFirst();
+            mNSDManager.resolveService(mCurrentRequest, new NsdManager.ResolveListener() {
+                @Override
+                public void onResolveFailed(NsdServiceInfo nsdServiceInfo, int i) {
+                    synchronized (mLock) {
+                        if (mCurrentRequest != null) mQueue.add(mCurrentRequest);
+                        makeNextRequest();
+                    }
+                }
+
+                @Override
+                public void onServiceResolved(NsdServiceInfo nsdServiceInfo) {
+                    synchronized (mLock) {
+                        if (mCurrentRequest != null) {
+                            printerFound(nsdServiceInfo);
+                            mCurrentRequest = null;
+                        }
+                        makeNextRequest();
+                    }
+                }
+            });
+
+        }
+    }
+
+    private void printerFound(NsdServiceInfo nsdServiceInfo) {
+        if (nsdServiceInfo == null) return;
+        if (TextUtils.isEmpty(PrinterHashMap.getKey(nsdServiceInfo))) return;
+        String vendor = MDnsUtils.getVendor(nsdServiceInfo);
+        if (vendor == null) vendor = "";
+
+        for (String vendorValues : mVendorInfo.mDNSValues) {
+            if (vendor.equalsIgnoreCase(vendorValues)) {
+                vendor = mVendorInfo.mVendorID;
+                break;
+            }
+        }
+
+        if ((vendor != mVendorInfo.mVendorID) &&
+                MDnsUtils.isVendorPrinter(nsdServiceInfo, mVendorInfo.mDNSValues)) {
+            vendor = mVendorInfo.mVendorID;
+        }
+
+        if (!(vendor == mVendorInfo.mVendorID)) {
+            return;
+        }
+
+        if (!MDnsUtils.checkPDLSupport(nsdServiceInfo, mPDLs)) {
+            return;
+        }
+
+        if ((mPrinterHashMap.addPrinter(nsdServiceInfo) == null)) {
+            mObserver.dataSetChanged();
+        }
+
+    }
+
+    private void printerRemoved(NsdServiceInfo nsdServiceInfo) {
+        if ((mPrinterHashMap.removePrinter(nsdServiceInfo) != null)) {
+            mObserver.dataSetChanged();
+        }
+    }
+
+    public int getCount() {
+        return mPrinterHashMap.size();
+    }
+
+}
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/VendorInfo.java b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/VendorInfo.java
new file mode 100755
index 0000000..39523ae
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/VendorInfo.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.xerox.printservicerecommendationplugin;
+
+import android.content.res.Resources;
+
+import java.util.Arrays;
+
+public final class VendorInfo {
+
+    public final String mPackageName;
+    public final String mVendorID;
+    public final String[] mDNSValues;
+    public final int mID;
+
+    public VendorInfo(Resources resources, int vendor_info_id) {
+        mID = vendor_info_id;
+        String[] data = resources.getStringArray(vendor_info_id);
+        if ((data == null) || (data.length < 2)) {
+            data = new String[]{null, null};
+        }
+        mPackageName = data[0];
+        mVendorID = data[1];
+        mDNSValues = (data.length > 2) ? Arrays.copyOfRange(data, 2, data.length) : new String[]{};
+    }
+}
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/XeroxPrintServiceRecommendationPlugin.java b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/XeroxPrintServiceRecommendationPlugin.java
new file mode 100755
index 0000000..9e42031
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/java/com/xerox/printservicerecommendationplugin/XeroxPrintServiceRecommendationPlugin.java
@@ -0,0 +1,76 @@
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.xerox.printservicerecommendationplugin;
+
+import android.content.Context;
+import android.net.nsd.NsdManager;
+import android.support.annotation.NonNull;
+
+public class XeroxPrintServiceRecommendationPlugin implements PrintServicePlugin, ServiceResolver.Observer {
+
+    protected final Object mLock = new Object();
+    protected PrinterDiscoveryCallback mDiscoveryCallback = null;
+    protected final ServiceResolver mServiceResolver;
+    protected final NsdManager mNSDManager;
+    protected final VendorInfo mVendorInfo;
+    private final int mVendorStringID = R.string.plugin_vendor_xerox;
+    private final String PDL__PDF = "application/pdf";
+    private final String[] mServices = new String[]{"_ipp._tcp"};
+
+    public XeroxPrintServiceRecommendationPlugin(Context context) {
+        mNSDManager = (NsdManager) context.getSystemService(Context.NSD_SERVICE);
+        mVendorInfo = new VendorInfo(context.getResources(), R.array.known_print_vendor_info_for_xerox);
+        mServiceResolver = new ServiceResolver(context, this, mVendorInfo, mServices, new String[]{PDL__PDF});
+    }
+
+    @Override
+    public int getName() {
+        return mVendorStringID;
+    }
+
+    @NonNull
+    @Override
+    public CharSequence getPackageName() {
+        return mVendorInfo.mPackageName;
+    }
+
+    @Override
+    public void start(@NonNull PrinterDiscoveryCallback callback) throws Exception {
+        synchronized (mLock) {
+            mDiscoveryCallback = callback;
+            mServiceResolver.start();
+        }
+    }
+
+    @Override
+    public void stop() throws Exception {
+        synchronized (mLock) {
+            mDiscoveryCallback = null;
+            mServiceResolver.stop();
+        }
+    }
+
+    @Override
+    public void dataSetChanged() {
+        synchronized (mLock) {
+            if (mDiscoveryCallback != null) mDiscoveryCallback.onChanged(getCount());
+        }
+    }
+
+    public int getCount() {
+        return mServiceResolver.getCount();
+    }
+}
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/layout/activity_xerox_discovery.xml b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/layout/activity_xerox_discovery.xml
new file mode 100755
index 0000000..d438079
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/layout/activity_xerox_discovery.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>

+<!--

+/*

+ * Copyright (C) 2016 The Android Open Source Project

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *      http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+-->

+<LinearLayout

+    xmlns:android="http://schemas.android.com/apk/res/android"

+    xmlns:tools="http://schemas.android.com/tools"

+    android:layout_width="match_parent"

+    android:layout_height="match_parent"

+    android:paddingLeft="@dimen/activity_horizontal_margin"

+    android:paddingRight="@dimen/activity_horizontal_margin"

+    android:paddingTop="@dimen/activity_vertical_margin"

+    android:paddingBottom="@dimen/activity_vertical_margin"

+    android:orientation="horizontal"

+    tools:context=".RecommendationPluginInitActivity">

+

+    <TextView

+        android:text="@string/vendor"

+        android:layout_width="wrap_content"

+        android:layout_height="wrap_content" />

+    <TextView

+        android:id="@+id/printer_count"

+        android:layout_width="wrap_content"

+        android:layout_height="wrap_content" />

+</LinearLayout>

diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-hdpi/ic_launcher.png b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100755
index 0000000..cde69bc
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-hdpi/ic_launcher.png
Binary files differ
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-mdpi/ic_launcher.png b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100755
index 0000000..c133a0c
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-mdpi/ic_launcher.png
Binary files differ
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100755
index 0000000..bfa42f0
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary files differ
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100755
index 0000000..324e72c
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100755
index 0000000..aee44e1
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary files differ
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values-w820dp/dimens.xml b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values-w820dp/dimens.xml
new file mode 100755
index 0000000..62df187
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values-w820dp/dimens.xml
@@ -0,0 +1,6 @@
+<resources>

+    <!-- Example customization of dimensions originally defined in res/values/dimens.xml

+         (such as screen margins) for screens with more than 820dp of available width. This

+         would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->

+    <dimen name="activity_horizontal_margin">64dp</dimen>

+</resources>

diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/colors.xml b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/colors.xml
new file mode 100755
index 0000000..f4ae6a7
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/colors.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>

+<!--

+/*

+ * Copyright (C) 2016 The Android Open Source Project

+ *

+ * Licensed under the Apache License, Version 2.0 (the "License");

+ * you may not use this file except in compliance with the License.

+ * You may obtain a copy of the License at

+ *

+ *      http://www.apache.org/licenses/LICENSE-2.0

+ *

+ * Unless required by applicable law or agreed to in writing, software

+ * distributed under the License is distributed on an "AS IS" BASIS,

+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

+ * See the License for the specific language governing permissions and

+ * limitations under the License.

+ */

+-->

+<resources>

+    <color name="colorPrimary">#3F51B5</color>

+    <color name="colorPrimaryDark">#303F9F</color>

+    <color name="colorAccent">#FF4081</color>

+</resources>

diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/dimens.xml b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/dimens.xml
new file mode 100755
index 0000000..295b5a9
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/dimens.xml
@@ -0,0 +1,5 @@
+<resources>

+    <!-- Default screen margins, per the Android Design guidelines. -->

+    <dimen name="activity_horizontal_margin">16dp</dimen>

+    <dimen name="activity_vertical_margin">16dp</dimen>

+</resources>

diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/donottranslate.xml b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/donottranslate.xml
new file mode 100755
index 0000000..43dbb9d
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/donottranslate.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+ * Copyright (C) 2016 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+-->
+<resources xmlns:tools="http://schemas.android.com/tools">
+    <string-array name="known_print_vendor_info_for_xerox" translatable="false">
+        <item>com.xerox.printservice</item>
+        <item>Xerox</item>
+        <item>Xerox</item>
+    </string-array>
+</resources>
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/strings.xml b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/strings.xml
new file mode 100755
index 0000000..d0dad8b
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/strings.xml
@@ -0,0 +1,6 @@
+<resources>

+    <string name="app_name">XeroxDiscovery</string>

+    <string name="vendor">Xerox :</string>

+    <string name="action_settings">Settings</string>

+    <string name="plugin_vendor_xerox">Xerox</string>

+</resources>

diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/styles.xml b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/styles.xml
new file mode 100755
index 0000000..6f19b47
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/main/res/values/styles.xml
@@ -0,0 +1,11 @@
+<resources>

+

+    <!-- Base application theme. -->

+    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

+        <!-- Customize your theme here. -->

+        <item name="colorPrimary">@color/colorPrimary</item>

+        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>

+        <item name="colorAccent">@color/colorAccent</item>

+    </style>

+

+</resources>

diff --git a/XeroxPrintServiceRecommendationPlugin/app/src/test/java/com/xerox/androidndiscovery/ExampleUnitTest.java b/XeroxPrintServiceRecommendationPlugin/app/src/test/java/com/xerox/androidndiscovery/ExampleUnitTest.java
new file mode 100755
index 0000000..6385208
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/app/src/test/java/com/xerox/androidndiscovery/ExampleUnitTest.java
@@ -0,0 +1,15 @@
+package com.xerox.printservicerecommendationplugin;

+

+import org.junit.Test;

+

+import static org.junit.Assert.*;

+

+/**

+ * To work on unit tests, switch the Test Artifact in the Build Variants view.

+ */

+public class ExampleUnitTest {

+    @Test

+    public void addition_isCorrect() throws Exception {

+        assertEquals(4, 2 + 2);

+    }

+}
\ No newline at end of file
diff --git a/XeroxPrintServiceRecommendationPlugin/build.gradle b/XeroxPrintServiceRecommendationPlugin/build.gradle
new file mode 100755
index 0000000..d091328
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/build.gradle
@@ -0,0 +1,23 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.

+

+buildscript {

+    repositories {

+        jcenter()

+    }

+    dependencies {

+        classpath 'com.android.tools.build:gradle:2.1.0'

+

+        // NOTE: Do not place your application dependencies here; they belong

+        // in the individual module build.gradle files

+    }

+}

+

+allprojects {

+    repositories {

+        jcenter()

+    }

+}

+

+task clean(type: Delete) {

+    delete rootProject.buildDir

+}

diff --git a/XeroxPrintServiceRecommendationPlugin/gradle.properties b/XeroxPrintServiceRecommendationPlugin/gradle.properties
new file mode 100755
index 0000000..3f98a0c
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/gradle.properties
@@ -0,0 +1,21 @@
+## Project-wide Gradle settings.

+#

+# For more details on how to configure your build environment visit

+# http://www.gradle.org/docs/current/userguide/build_environment.html

+#

+# Specifies the JVM arguments used for the daemon process.

+# The setting is particularly useful for tweaking memory settings.

+# Default value: -Xmx10248m -XX:MaxPermSize=256m

+# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

+#

+# When configured, Gradle will run in incubating parallel mode.

+# This option should only be used with decoupled projects. More details, visit

+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects

+# org.gradle.parallel=true

+#Mon May 16 09:35:08 EDT 2016

+systemProp.https.nonProxyHosts=127.0.0.1;localhost;13.*

+systemProp.https.proxyPort=8000

+systemProp.http.proxyHost=www.wb.xerox.com

+systemProp.http.nonProxyHosts=127.0.0.1;localhost;13.*

+systemProp.https.proxyHost=www.wb.xerox.com

+systemProp.http.proxyPort=8000

diff --git a/XeroxPrintServiceRecommendationPlugin/gradle/wrapper/gradle-wrapper.jar b/XeroxPrintServiceRecommendationPlugin/gradle/wrapper/gradle-wrapper.jar
new file mode 100755
index 0000000..05ef575
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/gradle/wrapper/gradle-wrapper.jar
Binary files differ
diff --git a/XeroxPrintServiceRecommendationPlugin/gradle/wrapper/gradle-wrapper.properties b/XeroxPrintServiceRecommendationPlugin/gradle/wrapper/gradle-wrapper.properties
new file mode 100755
index 0000000..c25cec5
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Wed Oct 21 11:34:03 PDT 2015
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
diff --git a/XeroxPrintServiceRecommendationPlugin/gradlew b/XeroxPrintServiceRecommendationPlugin/gradlew
new file mode 100755
index 0000000..9d82f78
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/gradlew
@@ -0,0 +1,160 @@
+#!/usr/bin/env bash
+
+##############################################################################
+##
+##  Gradle start up script for UN*X
+##
+##############################################################################
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn ( ) {
+    echo "$*"
+}
+
+die ( ) {
+    echo
+    echo "$*"
+    echo
+    exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+case "`uname`" in
+  CYGWIN* )
+    cygwin=true
+    ;;
+  Darwin* )
+    darwin=true
+    ;;
+  MINGW* )
+    msys=true
+    ;;
+esac
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+    ls=`ls -ld "$PRG"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '/.*' > /dev/null; then
+        PRG="$link"
+    else
+        PRG=`dirname "$PRG"`"/$link"
+    fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+        # IBM's JDK on AIX uses strange locations for the executables
+        JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+        JAVACMD="$JAVA_HOME/bin/java"
+    fi
+    if [ ! -x "$JAVACMD" ] ; then
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+    fi
+else
+    JAVACMD="java"
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
+    MAX_FD_LIMIT=`ulimit -H -n`
+    if [ $? -eq 0 ] ; then
+        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+            MAX_FD="$MAX_FD_LIMIT"
+        fi
+        ulimit -n $MAX_FD
+        if [ $? -ne 0 ] ; then
+            warn "Could not set maximum file descriptor limit: $MAX_FD"
+        fi
+    else
+        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+    fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+    JAVACMD=`cygpath --unix "$JAVACMD"`
+
+    # We build the pattern for arguments to be converted via cygpath
+    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+    SEP=""
+    for dir in $ROOTDIRSRAW ; do
+        ROOTDIRS="$ROOTDIRS$SEP$dir"
+        SEP="|"
+    done
+    OURCYGPATTERN="(^($ROOTDIRS))"
+    # Add a user-defined pattern to the cygpath arguments
+    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+    fi
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
+    i=0
+    for arg in "$@" ; do
+        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
+
+        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
+            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+        else
+            eval `echo args$i`="\"$arg\""
+        fi
+        i=$((i+1))
+    done
+    case $i in
+        (0) set -- ;;
+        (1) set -- "$args0" ;;
+        (2) set -- "$args0" "$args1" ;;
+        (3) set -- "$args0" "$args1" "$args2" ;;
+        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+    esac
+fi
+
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
+function splitJvmOpts() {
+    JVM_OPTS=("$@")
+}
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
+
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
diff --git a/XeroxPrintServiceRecommendationPlugin/gradlew.bat b/XeroxPrintServiceRecommendationPlugin/gradlew.bat
new file mode 100755
index 0000000..aec9973
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/gradlew.bat
@@ -0,0 +1,90 @@
+@if "%DEBUG%" == "" @echo off

+@rem ##########################################################################

+@rem

+@rem  Gradle startup script for Windows

+@rem

+@rem ##########################################################################

+

+@rem Set local scope for the variables with windows NT shell

+if "%OS%"=="Windows_NT" setlocal

+

+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.

+set DEFAULT_JVM_OPTS=

+

+set DIRNAME=%~dp0

+if "%DIRNAME%" == "" set DIRNAME=.

+set APP_BASE_NAME=%~n0

+set APP_HOME=%DIRNAME%

+

+@rem Find java.exe

+if defined JAVA_HOME goto findJavaFromJavaHome

+

+set JAVA_EXE=java.exe

+%JAVA_EXE% -version >NUL 2>&1

+if "%ERRORLEVEL%" == "0" goto init

+

+echo.

+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.

+echo.

+echo Please set the JAVA_HOME variable in your environment to match the

+echo location of your Java installation.

+

+goto fail

+

+:findJavaFromJavaHome

+set JAVA_HOME=%JAVA_HOME:"=%

+set JAVA_EXE=%JAVA_HOME%/bin/java.exe

+

+if exist "%JAVA_EXE%" goto init

+

+echo.

+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%

+echo.

+echo Please set the JAVA_HOME variable in your environment to match the

+echo location of your Java installation.

+

+goto fail

+

+:init

+@rem Get command-line arguments, handling Windowz variants

+

+if not "%OS%" == "Windows_NT" goto win9xME_args

+if "%@eval[2+2]" == "4" goto 4NT_args

+

+:win9xME_args

+@rem Slurp the command line arguments.

+set CMD_LINE_ARGS=

+set _SKIP=2

+

+:win9xME_args_slurp

+if "x%~1" == "x" goto execute

+

+set CMD_LINE_ARGS=%*

+goto execute

+

+:4NT_args

+@rem Get arguments from the 4NT Shell from JP Software

+set CMD_LINE_ARGS=%$

+

+:execute

+@rem Setup the command line

+

+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

+

+@rem Execute Gradle

+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

+

+:end

+@rem End local scope for the variables with windows NT shell

+if "%ERRORLEVEL%"=="0" goto mainEnd

+

+:fail

+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of

+rem the _cmd.exe /c_ return code!

+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1

+exit /b 1

+

+:mainEnd

+if "%OS%"=="Windows_NT" endlocal

+

+:omega

diff --git a/XeroxPrintServiceRecommendationPlugin/settings.gradle b/XeroxPrintServiceRecommendationPlugin/settings.gradle
new file mode 100755
index 0000000..d3db109
--- /dev/null
+++ b/XeroxPrintServiceRecommendationPlugin/settings.gradle
@@ -0,0 +1 @@
+include ':app'